About This Talk
Is the front end of your Django project a disorganized mess? Have you ever tried to add React to a Django project and gotten discouraged because it was too complicated? Or have you worked in a project with completely separate front and back ends and wondered why you couldn’t use just Django templates and forms for simple things and had to build an API for every little thing?
If so, this talk is for you.
- The most common “ad-hoc” approach, where JS just gets incrementally added to templates until you find yourself in a mess.
- The completely decoupled JS front-end and Django-API back end, which is popular, but complex and unfamiliar to Django developers.
- A “hybrid architecture”, that combines modern JS with familiarity of working in Django.
The rest of the talk deep dives into building out a hybrid app with Django.
Finally, we’ll bring it back to Django, showing how you can add a JS toolchain to a Django project and use a React application inside Django without all the complexity of managing a separate standalone front end. I’ll also cover some of the common patterns that are used to interact with data, and the benefits and tradeoffs of the hybrid architecture over other models.
I’m a CTO-turned-solopreneur. Once the leader of a team of 30 people and the lead architect of the largest open-source Django project in the world, I now run three online businesses by myself. I believe in not over-engineering things, the power of passive income, and choosing your own path through life.