Django Advanced
An advanced Django training covering testing, HTMX-powered dynamic templates, REST APIs, ORM performance, Docker deployment, external API integration, and authentication strategies.
Technologies
This training picks up where the basics leave off. Participants explore the Django ecosystem in depth — writing unit and integration tests, building dynamic UIs without a JavaScript framework using HTMX, exposing and consuming REST APIs, squeezing performance from the ORM, and deploying Django applications with Docker. The course closes with authentication strategies ranging from Django REST Framework token auth to OAuth and Allauth.
Who is this training for?
Django developers who are comfortable with models, views, templates, and forms and want to go deeper — building production-quality, well-tested, and observable applications.
Agenda
Testing
- Writing unit tests for Django applications
- Integration tests with the Django test client
Dynamic Templates
- Component-based templates with Django Viewcomponents
- HTMX: progressive enhancement and server-driven interactivity
Custom Templates
- Writing custom template filters
- Writing custom template tags
- Context processors
- Tabular data with Django Tables
Models
- Model-level constraints and data integrity
REST APIs
- Serializers with Django REST Framework
- Class-based API views
Performance
- ORM query optimisation:
select_related,prefetch_related, annotations - Raw SQL queries
- Profiling and identifying bottlenecks
Reusability
- Packaging Django functionality as a reusable library
Observability
- Sending transactional emails from Django
- Error notification emails
- Application metrics
Docker
- Container fundamentals
- Containerising a Django application
- Multi-service setups with Docker Compose
External APIs
- Synchronous HTTP calls to external services
- Asynchronous external API integration
Authentication
- Token authentication with Django REST Framework
- OAuth with Django OAuth Toolkit
- Social authentication with Allauth
Book this Training
Interested in this training for your team? Reach out and we'll put together a proposal tailored to your requirements — on-site or remote, predefined agenda or custom.
Request this Training