Django is a "batteries included" Python framework: an ORM, migrations, authentication, forms and a ready-made admin panel come with it. Django REST Framework (DRF) adds the tools you need to turn those models into a well-behaved API. Together they are a dependable choice for content-heavy sites, internal tools and the backend of web and mobile apps. This course builds one project that has both an admin for staff and an API for a front end.
What you'll learn
- How a Django project is organised: settings, apps, URLs and views
- Designing models, relationships and migrations with the Django ORM
- Customising the Django admin so non-developers can manage data
- Users, authentication and a custom user model from the start
- Serializers: validation, nested data and writing back to the database
- Views, viewsets and routers in DRF, and when to use each
- Permissions, throttling, filtering and pagination
- Token and session authentication for API clients
- Avoiding slow queries with select_related, prefetch_related and indexes
- Testing with pytest-django and deploying with a production web server
Who it's for
- Python developers who want to build web apps and APIs
- Data and automation developers who need a proper backend for their tools
- Front-end and mobile developers who need a reliable API with an admin panel
Prerequisites
- Comfortable with Python: functions, classes, modules and virtual environments (our Python for Automation course covers the basics)
- Basic SQL and an understanding of tables and relationships
- Python 3 and a code editor installed
Outcomes
By the end of this course you will be able to:
- Structure a Django project into focused apps with clean models and migrations.
- Give staff a useful admin panel with very little code.
- Build an authenticated, paginated and permission-checked REST API with DRF.
- Test the project and deploy it with production settings.
Course outline
| Module | Topic |
|---|---|
| 1 | Project setup, settings and the app structure |
| 2 | Models, fields, relationships and migrations |
| 3 | The ORM: querysets, lookups and aggregation |
| 4 | The Django admin and custom user models |
| 5 | Views, templates and forms (the classic Django path) |
| 6 | DRF serializers and validation |
| 7 | Views, viewsets and routers |
| 8 | Authentication and permissions |
| 9 | Filtering, pagination and throttling |
| 10 | Query performance and caching |
| 11 | Testing with pytest-django |
| 12 | Deployment: static files, environment settings and a production server |
FAQ
Should I use Django or FastAPI?
Both are good. Django suits projects that benefit from its admin, ORM and conventions. FastAPI suits lighter, API-first services with heavy use of type hints. Our FastAPI course covers the other option.
Does the course cover async Django?
We explain where Django's async views and ORM support help and where they do not, but the main project uses the standard synchronous approach most Django apps run on.
Do I need to know front-end development?
No. The API can be tested with any HTTP client, and the admin gives you a working interface without writing a front end.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.