~/talk

Django forms in the age of HTMx: the single field form

Talkat DjangoCon Europe 2026 · 2026-04-15..04-19· [django, frontend-architecture]
name:Hanne Moa
links:none on file
name:Hanne Moa
links:none on file
slides:none on file

Shows how HTMx makes any element behave like a single-field form and how Django forms still provide validation and rendering when you skip a form tag. Demonstrates concrete patterns: a widget mixin that injects request and AJAX context for widget templates, a plugin registry to register/unregister field-type subclasses, and storing field answers in JSON or models. Presents a working migration: Argus converted from React to HTMx (production service, Django 5.2, Tailwind, DaisyUI) and two live demos.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:31Horror stories of old forms
  3. 4:06Birth of single field form
  4. 5:51Single field form basics
  5. 7:38Demo old style form
  6. 9:08Adding HTMX to forms
  7. 11:01Single field form benefits
  8. 12:41Code walkthrough
  9. 13:58Magic of single field forms
  10. 15:02HTMX widget context
  11. 15:43Creating plugins easily
  12. 16:45Registry and unregistering
  13. 17:26Q&A begins
  14. 17:50Question about form explosion
  15. 20:00HTMX app structure
  16. 21:43Permissions and security
  17. 23:08Closing remarks
~/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.