Learn Django
A free, interactive Django course for Python programmers. Write views, templates and models, press Run and your site opens beside the editor in real Django 6.1, with AI hints and a certificate per section.
119 lessons119 challenges254 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
Section 1
Django Basics
Start sectionStartHow a Django site answers a request: projects and apps, views, URLs and templates. You build the website of a small café, page by page.Your First Django Site
Project5 lessons510Dynamic URLs
Project5 lessons510Templates
Project6 lessons615Layouts and Static Files
Project4 lessons410The Café Website
3 lessons35Section 2
Models and the Admin
Start sectionStartStore data with models, query it with the ORM, show it on pages and manage it in Django's admin. You build a bookshelf.Your First Model
Project6 lessons615Querying with the ORM
6 lessons615Pages from the Database
Project3 lessons35Relationships
Project4 lessons48The Admin
Project2 lessons25Project: Authors
2 lessons24Section 3
Forms
Start sectionStartTake input from visitors safely: search forms, POST forms and CSRF, Django forms, validation and ModelForms. You build an events board with RSVPs.HTML Forms
Project4 lessons48Django Forms
Project7 lessons715ModelForms
Project4 lessons410RSVPs
Project2 lessons24Project: Guest List
3 lessons35Section 4
Users and Accounts
Start sectionStartSign up, log in and log out, protect pages, and give every user their own data. You build a private notes app.Who Is Visiting
Project5 lessons59Protecting Pages
Project2 lessons25Your Own Data
Project4 lessons410Staff and Permissions
2 lessons24Project: Profile and Sharing
3 lessons35Section 5
Class-Based Views
Start sectionStartWrite less code with Django's generic views: lists, details, create, update and delete, pagination and mixins. You build a job board.From Functions to Classes
Project3 lessons35Generic Display Views
Project4 lessons49Pagination
Project2 lessons25Editing Views
Project7 lessons715Project: Finish the Job Board
2 lessons24Section 6
JSON APIs
Start sectionStartTurn your models into a JSON API, accept JSON, return the right status codes, call it from JavaScript, and get a site ready to deploy. You build a task tracker.Your First JSON Endpoint
Project3 lessons35Reading Requests
Project5 lessons510Updating and Deleting
Project3 lessons35Calling Your API
Project3 lessons39Project: Sorting the Work
3 lessons35Ready to Deploy
Project2 lessons25
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time. Reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn Django with Coddy
- Your code and your site sit side by side. Press Run and a real Django 6.1 project starts in your browser: the migrations run, the site opens in a preview with its own address bar, and the Console shows every request,
print()and error with its file and line. Press Check and the lesson is graded by visiting your site the way a browser does. - The first section builds a café's website from zero: what Django is, a project and its apps,
INSTALLED_APPS, views,path()andinclude(), templates with{% for %},{% if %}and filters, named URLs, template inheritance and static files. - Then the database, on a bookshelf: models and migrations, the shell and QuerySets, list and detail pages, the Django admin,
ForeignKeyandManyToManyField. Then forms, on an events board with RSVPs: GET and POST, CSRF, redirect after POST,Form,ModelForm, validation and messages. - Users and accounts, on a private notes app: login, logout and signup,
login_required, notes that belong to one user and an edit page only their author can open. Then class-based views on a job board:ListView,DetailView,CreateView,UpdateView, pagination.
Frequently asked questions about learning Django
Do I need to know Python before learning Django?
Is this the real Django?
manage.py, settings, apps, models, views and templates.Do I need to install Python or Django?
No. Everything runs in the browser, with a database that lives in memory and starts fresh on every Run. The course is on the website, on a computer or a phone, and not in the Coddy mobile apps. To build your own projects later, install Python and Django on your computer: everything you learn here carries over.
What will I build in this Django course?
Six projects, one per section: a café's website, a bookshelf with an admin, an events board with RSVPs, a private notes app with accounts, a job board built from class-based views and a task tracker API.
Does the course teach Django REST Framework?
JsonResponse, status codes, reading a JSON body), which is the work Django REST Framework automates.Will I deploy a Django site?
DEBUG, ALLOWED_HOSTS, collectstatic, environment variables), but your sites run in the browser only.Is the Django course free?
Yes. The lessons, the live site, the AI hints and the certificates are free. A free account works through a few lessons a day, and Pro removes the daily limit.
Do I get a certificate for the Django course?
Yes. Each of the 6 sections gives you a free certificate of completion when you finish it, with its own page you can share or add to LinkedIn.