Welcome! This is a beginner-friendly guide to learning Django step by step, with simple explanations, relatable analogies, and practice code in every lesson.
Each lesson is in its own Git branch, so you can explore and learn at your own pace — one topic at a time.
You don’t need to install anything on your computer.
Just use GitHub Codespaces (which runs in your browser).
- Click the green
<> Code
button at the top of this repo. - Choose “Open with Codespaces” → “+ New codespace”
- Wait a few seconds — VS Code will open in your browser.
Create your own repo on github to follow the lessons.i.e.My Django Project. Open it using codespace as explained above and create your project as you follow through the lessons. Do not forget to commit so as to not lose your progress.
- Each lesson is a Git branch
- The
main
branch is just an overview and table of contents - All Django code is inside a project folder called
mysite/
and apps likehello/
git checkout lesson-02-setup
Replace lesson-02-setup
with the branch name of the lesson you want to try.
You can run the Django server with:
python manage.py runserver
Then visit: http://127.0.0.1:8000/ in the Preview tab.
Lesson | Branch Name | Topic |
---|---|---|
01 | lesson-01-what-is-django | What is Django? |
02 | lesson-02-setup | Setting up your Django project |
03 | lesson-03-structure | Understanding the Django project structure |
04 | lesson-04-create-app | Creating your Django app |
05 | lesson-05-templates | Understanding and creating Django templates |
06 | lesson-06-context | Passing Data to Templates (Context) |
07 | lesson-07-staticfiles | Adding CSS & Images (Static Files) |
08 | lesson-08-adminpanel | Creating an Admin Panel |
09 | lesson-09-form | User Input with Django Forms |
- You know some Python basics (functions, variables, if statements)
- You want to learn Django in a simple, practical way
- You want to build real web apps — not just read theory
Every lesson builds on the last one.
You’ll write real code, run real servers, and actually understand what’s happening.
👉 Start from Lesson 01 and go step by step.
You've got this! 🚀