Django tutorials
29 articles · page 2 of 2Hand-written tutorials, ordered as a recommended learning path.
- 21 Django Channels Add real-time features to Django with Channels. Build a WebSocket chat consumer, set up the ASGI server, and broadcast events with channel layers.
- 22 Class-Based Views Understand Django's class-based views by building from View up to ListView and UpdateView. Learn the MRO, mixins, and when CBVs beat function-based views in real projects.
- 23 Django Middleware Understand how a Django request flows through middleware, URL routing, and views, and learn to write custom middleware for cross-cutting concerns.
- 24 Django Relations Model real-world relationships in Django with ForeignKey, OneToOneField, and ManyToManyField, including reverse lookups, on_delete, and through tables.
- 25 Django Auth Move beyond is_authenticated. Learn how to model groups, object-level permissions, and DRF permission classes cleanly.
- 26 DRF Serializers Understand how DRF serializers validate, transform, and persist data, and learn how to compose them for complex API payloads.
- 27 DRF vs FastAPI A practical comparison of DRF and FastAPI: performance, ORM, validation, async, and how to choose for a new Python service.
- 28 Django Signals Learn how Django signals decouple side effects from your models, when to use them, and the common pitfalls that make signals hard to debug.
- 29 Templates Deep Dive Master the Django template language: contexts, inheritance, includes, custom tags and filters, autoescaping, and performance tips for building maintainable server-rendered UIs.