~/talk

Hacking Django Channels for Fun (and Profit)

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [django, web-platform]
slides:none on file

Shows a concrete hack: subclassing Channels’ runworker to hacked runworker so Django starts long‑running background workers that open persistent websockets to Discord using discord.py. Sends messages from existing Celery schedulers into the channel layer which routes to a consumer that posts to Discord; prototype lands in 24 hours, initially crashes under malformed input then is fixed. Notes a real problem: channel layer capacity default 100 drops messages unless raised (e.g. to 1000).

AI-written summary · about

  1. 0:00Intro
  2. 0:30Welcome
  3. 1:13Backstory
  4. 2:29Django Requests
  5. 3:31ASGI
  6. 5:03Websocket
  7. 7:26Channels
  8. 8:36Consumer Example
  9. 9:54Routing
  10. 11:58Discord
  11. 13:12Reverse Connection
  12. 13:36Discord Connection
  13. 14:57Why Django
  14. 16:15Django Channels Worker
  15. 18:11Django Channels Worker Code
  16. 19:22Why do we do this
  17. 19:42Examples
  18. 21:51Sending to Discord
  19. 25:21Wishlist
  20. 27:02Tips and Tricks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.