~/talk

Workshop 1 - Let's Make a Realtime Game with Django Channels

Talkat PyCon Philippines 2023 · 2023-02-25..02-26· [python, web-platform]
links:none on file
slides:none on file

Live code of a simple online game using Django Channels and WebSockets (WS/WSS) shows an ASGI stack with Daphne, Redis as the channel layer, and Celery for periodic heartbeats. The demo builds a rock‑paper‑scissors game with players randomly assigned red or blue teams, 10‑second rounds driven by a Celery tick, game state kept in Redis in‑memory stores, player IDs and names, and front‑end WS handlers. Chat, timer, and periodic facts work; the game logic is basic but functional and code lives on the GitHub repo (2022→2023 rename).

AI-written summary · about

  1. 0:00Workshop intro
  2. 1:28Django Channels & WebSockets
  3. 8:03Event-driven architecture
  4. 13:25Chat server setup
  5. 25:29Sync vs async
  6. 30:18Adding user auth
  7. 31:50Celery periodic tasks
  8. 37:38Real-time game build
  9. 52:53Q&A
~/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.