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.
Start
Install and create the project
Intro · venv · InstallViews
Requests, URLs, HTML
Views · URLs · TemplatesModels
Tables and the admin
Models · Insert · AdminTemplates
Tags, filters, extends
If · For · ExtendsQuerySet
Read and filter rows
Get · Filter · LookupsShip it
Static files, Postgres, deploy
Static · Forms · AuthWhat you get in this course
- One app, in order. A members directory: models, views, templates, admin, then forms and auth.
- Original teaching, not only syntax. Each chapter explains why the file exists before you copy a snippet.
- Clear next step. After Django, open MySQL with Python or MongoDB.
Lesson sequence
Every lesson, in order.
- 01Django Intro
- 02Get Started
- 03Virtual Environment
- 04Install Django
- 05Create Project
- 06Create App
- 07Views
- 08URLs
- 09Templates
- 10Models
- 11Insert Data
- 12Update Data
- 13Delete Data
- 14Update Model
- 15Add Members
- 16Admin
- 17404 Template
- 18Template Variables
- 19Template Tags
- 20If Tag
- 21For Tag
- 22Include Tag
- 23Comments
- 24Cycle Tag
- 25Extends
- 26Template Filters
- 27QuerySet
- 28QuerySet Get
- 29QuerySet Filter
- 30QuerySet Order By
- 31QuerySet AND
- 32QuerySet OR
- 33Field Lookups
- 34Static Files
- 35CSS File
- 36JavaScript File
- 37Images
- 38PostgreSQL
- 39Deploy Django
- 40Slug Field
- 41Bootstrap 5
- 42Forms
- 43Authentication