Intermediate · 5h 50m · 19 lessons
Django
The batteries-included Python framework — from your first view to the ORM, auth, and APIs.
What you'll learn
- ✦Explain how a request flows through URLs, views, models and templates, and how a project splits into apps
- ✦Build pages by mapping URLs to function and class-based views that render templates
- ✦Design models, run migrations, and write efficient ORM queries across relationships
- ✦Build forms that validate input, and manage data through the Django admin
- ✦Protect pages with authentication, permissions and middleware
- ✦Build a JSON API with Django REST Framework and prepare a project for production
Part of these career paths
- Backend Developer path · course 13 of 14
- Full-Stack Developer path · course 14 of 14
Certification projects
Build 4 projects to earn your certificate
Hands-on work that proves you can apply what you learned — part of the certificate requirements.
Syllabus
Module 1 · 1h
Meet Django Free
What you'll be able to do
- Can explain what Django gives you out of the box and when it's a good fit
- Can trace one request through the URLconf, a view, a model and a template
- Can create a project, add an app and switch it on in INSTALLED_APPS
Module 2 · 57m
URLs, views & templates Locked
What you'll be able to do
- Can write URL patterns with path(), converters, include() and names
- Can write a view as a function or a class and return a proper response
- Can build pages that extend one base template and fill its blocks
Module 3 · 1h 16m
Models & the ORM Locked
What you'll be able to do
- Can design a model with the right field types and options
- Can change models safely with makemigrations and migrate
- Can write ORM queries with filters, lookups and ordering, and read the SQL they make
- Can link models and fix N+1 queries with select_related or prefetch_related
Module 4 · 45m
Forms & the admin Locked
What you'll be able to do
- Can validate form input on the server and show each error beside its box
- Can create and edit model rows with a ModelForm, setting server-side fields with save(commit=False)
- Can set up the admin for staff: register models, shape the list page and decide who logs in
Module 5 · 55m
Auth & middleware Locked
What you'll be able to do
- Can wire up login and logout and trace how a session turns into request.user
- Can protect views by login, by permission and by owner, and explain why hiding a link isn't enough
- Can write a middleware and predict how the order of MIDDLEWARE changes what each layer sees
Module 6 · 56m
Building & beyond Locked
What you'll be able to do
- Can build a JSON API for one model with a serializer, a viewset and a router, and lock it with permissions
- Can prepare production settings, collect static files and size Gunicorn for a first launch
- Can write and run a first Django test, and plan one complete project to finish next