Django tutorial

Learn Django by Building a Python Web App

Django is Python’s batteries-included web framework. This hub is the course map: install, models, templates, the admin, and a members app you can run locally. Each lesson explains one step.

43 lessons. The first chapter is Django Introduction; this page is the course hub.

Course overview

Start at the first lesson, or jump to a topic.

What you get in this course

Lesson sequence

Every lesson, in order.

  1. 01Django Intro
  2. 02Get Started
  3. 03Virtual Environment
  4. 04Install Django
  5. 05Create Project
  6. 06Create App
  7. 07Views
  8. 08URLs
  9. 09Templates
  10. 10Models
  11. 11Insert Data
  12. 12Update Data
  13. 13Delete Data
  14. 14Update Model
  15. 15Add Members
  16. 16Admin
  17. 17404 Template
  18. 18Template Variables
  19. 19Template Tags
  20. 20If Tag
  21. 21For Tag
  22. 22Include Tag
  23. 23Comments
  24. 24Cycle Tag
  25. 25Extends
  26. 26Template Filters
  27. 27QuerySet
  28. 28QuerySet Get
  29. 29QuerySet Filter
  30. 30QuerySet Order By
  31. 31QuerySet AND
  32. 32QuerySet OR
  33. 33Field Lookups
  34. 34Static Files
  35. 35CSS File
  36. 36JavaScript File
  37. 37Images
  38. 38PostgreSQL
  39. 39Deploy Django
  40. 40Slug Field
  41. 41Bootstrap 5
  42. 42Forms
  43. 43Authentication

FAQ: Learn Django by Building a Python Web App

Common questions about this page.

What is the StudyGrid Django tutorial?

The Django hub at /django is the course map. Start at Django Introduction, then install, models, views, templates, the admin, forms, and authentication. Each lesson is one step of a members app.

Should I run django tutorial examples locally for better learning?

Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn django tutorial in this Django Django lesson (Learn Django by Building a Python Web App).

Is this Django course for beginners?

Yes. You should already be able to write basic Python. If you are new to Python, start at the Python tutorial hub, then return here.

Does Django run in the StudyGrid browser editor?

No. Django needs a local project and a database. The lessons explain the files to create. The Python editor at /try is for snippets, not a Django server.

How is /django different from Django Introduction?

/django is the hub: overview, tracks, and every lesson link. /tutorial/django is the first lesson — what Django is and what you will build.

Is the Django tutorial free?

Yes. The full Django path on StudyGrid (studygrid.in) is free.