Django & JavaScript: A long and complicated friendship
summary
JavaScript has been part of Django since a 2005 core commit of 1715 lines, and modern projects replace inline scripts with a decoupled front end: Django REST framework backends serve JSON to React single-page apps built with webpack and served via nginx proxy. Example project Smart Start demo uses Django REST framework, create-react-app, django-webpack-loader and client-side routing that indexes fine in Google though Facebook crawlers miss per-page meta tags; Stack Overflow shows 62% of devs using JavaScript versus 32% for Python.
AI-written summary · about
chapters (20)
- 0:00Start
- 3:13Interactivity!
- 3:40webapps not websites
- 5:15JS history 2005 – 2010 ECMAScript 3
- 10:03Frontend build tooling? Django Compressor
- 18:16String interpolation let msg = 'Hello world'
- 18:47Arrow functions let myFunc = (argi, arg2) = // normal function stuff
- 19:28Module imports
- 19:47Classes
- 23:16Less invasive build tooling Django Webpack Loader pow.gd/kvuUqd
- 24:46interlude- demo
- 31:36Picking the right JS library, framework or pattern
- 31:59Are you building a website or are you building a webapp?
- 32:29Is your JS for decorative or functional purposes?
- 33:06Do you need batteries included?
- 33:40Is there business logic in your JS code?
- 34:13Node.js - the competition
- 34:33The contenders
- 36:16Django fights back... Can't compete vs. one language
- 38:22Browser and JS functionality just keeps on evolving
related talks
43mDjango and React: Perfect Together
30mSo you want a modern frontend for your Python web app?
32mAngularJS + Django = A Perfect Match
37mPerformant Django
31mReinventing Django for the Real-Time Web
27mBuilding Microfrontend Architecture for Scale with JS
42mDjangular
34mYour Front End Framework is Overkill - Server Side Javascript w/ Rails
