~/talk

Level Up Your Django Frontend: Integrate Web Components into Django Templates with Vue

Talkat DjangoCon US 2025 · on Monday, 2025-09-08· at 15:40· Sauganash Ballroom· [django]
slides:none on file

A demo Django app that rolls tabletop dice shows concrete steps: add Vue single‑file components, cross‑compile them into Vue SFC → native web components with shadowRoot=false, mount the entry script in Django templates, and keep hot‑module reload during development. The build uses npm (motion v for animation), Python d20 for roll logic, Ajax partials and JSON for quick‑rolls, teleport for a modal, Pinia for shared state, and production builds output to Django static — everything works as demonstrated.

AI-written summary · about

  1. 0:00Welcome
  2. 2:08Dice demo app
  3. 7:05Vue project setup
  4. 10:35Vue single file component
  5. 14:47Compile Vue to web components
  6. 17:25Vue components in Django
  7. 19:55Animate dice rolls
  8. 23:47Interactive dice preset card
  9. 27:44AJAX in Vue components
  10. 31:45JSON with max roll status
  11. 34:51Teleport dice rolls
  12. 38:02Pinia state sharing
  13. 43:07Summary
~/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.