~/talk

Hacking Django Channels for Fun (and Profit)

Talkat PyOhio 2021 · on Saturday, 2021-07-31· [django, web-platform]
slides:none on file

Django Channels gets extended to hold long‑running bi‑directional websocket connections so Django itself talks to Discord and browsers without a sidecar. The implementation subclasses ASGI server to start background workers at launch, uses the dspy discord library to bridge Discord messages into a queue, routes with an ASGI/channel protocol router, and highlights that channel layer capacity defaults to a hundred (raised to 1,000 in production). The hack runs reliably for realtime proxies and lightweight async tasks.

AI-written summary · about

  1. 0:00Introduction to Channels
  2. 4:46Background worker usage
  3. 7:04Hacking custom workers
  4. 10:27Tips and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.