~/talk

Wishlist granted: HTMX without betraying your Django views

Talkat DjangoCon US 2026 · 2026-08-24..08-28· [frontend-architecture, web-platform]
slides:none on file

Built a wishlist for an aircraft-parts marketplace by keeping existing Django models and views and adding HTMX + Django partials so actions happen without full-page reloads. Changes are small: add Django-HTMX middleware, serve template fragments via conditional get_template_name, and use hx-post, hx-get, hx-target, hx-swap on forms and links. Handles CSRF on non-form posts, uses HTMX client-side events to refresh distant nav counts, and converts redirects to HttpResponseClientRedirect (or middleware) so session expirations don’t swap full login pages. Tests use Django test client with HX headers.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 7:47Baseline wish list demo
  3. 8:55Recipe ingredients explained
  4. 15:27Setting up HTMX and Django
  5. 18:23First HTMX swap example
  6. 22:23Adding items with HTMX
  7. 25:00Handling POST requests
  8. 27:14Demo of wish list operations
  9. 29:33Renaming wish lists
  10. 31:08Using HTMX events
  11. 34:27Session expiration handling
  12. 36:59Live site demonstration
  13. 38:32Closing remarks and tradeoffs
  14. 41:09Q&A session
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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.