~/talk

Vue + Django: Combining Django Templates and Vue Single File Components without compromise

Talkat DjangoCon US 2023 · 2023-10-16..10-20· [django, vue]
slides:none on file

Demonstrates a concrete integration: mount Vue SFCs into Django templates by mapping element data-attributes to component props, run multiple mounts per page, and share state via a Pinia store so point totals update without a REST API. Uses Vite dev server for HMR during development and outputs built assets to Django static for production. Approach has run in production for four years, supports hot reload with preserved state, and requires only template container elements and an entry-point JS.

AI-written summary · about

  1. 0:00Introduction
  2. 3:57Vue and Django benefits
  3. 5:23Demo app setup
  4. 6:46Vue store and components
  5. 9:17PointStatus component
  6. 11:03RewardClaim logic
  7. 11:53Vue to Django mapping
  8. 13:59Repeated components in Django
  9. 15:23Integration setup
  10. 16:05Live dynamic demo
  11. 17:14Development vs production JavaScript assets
  12. 19:06Django template benefits
  13. 19:48Integration roadmap
  14. 21:12Resources and Q&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.