Django Channels Teaching a mature framework new tricks
summary
Shows how Django Channels turns a standard Django stack into a real‑time system using Daphne (ASGI), a Redis channel layer in production and the in‑memory layer in development. Demonstrates a few lines of synchronous consumer code, uses synchronous consumers and groups to broadcast client updates, and builds a collaborative canvas that echoes XY coordinates at ~10 updates/sec and runs on a weak Amsterdam instance. Explains session auth decorators, most‑once delivery semantics, and routing like urls.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:45The problem with WebSockets
- 6:35Why choose Django
- 9:44Understanding WebSockets
- 11:36Django Channels overview
- 14:16Building with channels
- 17:54Implementation details
- 20:12Q&A and conclusion
related talks
29mBuilding real time applications with Django
31mReinventing Django for the Real-Time Web
12mHacking Django Channels for Fun (and Profit)
45mKeynote: Architecting with Channels
45mWebSockets: Intro to Messaging
55mWorkshop 1 - Let's Make a Realtime Game with Django Channels
40mTaking Django Async
42mA Python-Driven Web App Framework with Django, Channels, and React
