Best buddies: Django and HTMX
summary
Claim: combine Django and HTMX to build SPA‑like behavior with zero custom JavaScript. Demos show a button-triggered joke (pure HTML response), a click‑to‑edit flow using GET and PUT to the same view that swaps templates back and forth, and an endless scroll adds six recipes pattern driven by the HTMX revealed trigger. Built a CRUD ingredient UI in ~30 minutes that works but requires many templates, views and tests; limitations: no client state, limited DOM manipulation, CSRF must be exposed (put token on <body>).
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 1:07What is HTMX and why use it
- 2:12Basic HTMX example and attributes
- 6:55Editing recipes with HTMX
- 9:03Django view integration with HTMX
- 11:13Endless scroll with HTMX
- 14:27Complex example with ingredients list
- 17:26Project structure for HTMX in Django
- 20:25Limitations and when not to use HTMX
- 21:09CSRF token handling in HTMX
- 22:33Resources and closing remarks
- 22:54Q&A session
related talks
26mReimagining dynamic web apps with HTMX
26mModern web apps with (almost) no JS: Enhancing UX with HTMX in Django
37mHTMX: Frontend Revolution
35mJavascript Fatigue: Back to Hypermedia w/ Django+HTMX
49mBring back the joy in web development with HTMX and Hypermedia-Driven Applications
57mHTMX: Why You Don't Always Need a SPA Framework
27mHTMX – Say “no” to Complexity
39mWhy HTMX is crushing React, Vue & Svelte
