
Great for larger teams with specialized frontend and backend developers as different teams can work simultaneously without conflicting with each other's work. SPA (single page app) frontend with Django as a Rest APIĭjango is used purely as a backend with communication via an API. The potential downside is frontend code can be large and disorganized (but does not have to be). Great for small teams, allows for quick prototyping.
Leverages all of Django's built in features. Django templates with javascript added throughout your templates. HTML templates are rendered on the server, this is the traditional approach. There are three common approaches for organizing your Django frontend code. Overview of frontend architecture for Django Applicationsįrontend architecture refers to how the frontend code is organized. There are also lighter javascript frameworks like Alpine.js (Alpine) that provide powerful tools for composing behavior directly in HTML without the need for larger frontend frameworks that may require build tools or resorting to jQuery.
Popular modern javascript frameworks you could use for your Django application include React, Angular, and VueJS. In this article, you will learn how to use modern javascript in your Django application without giving up the advantages of Django.Ĭlient-side javascript is a core part of modern interactive web applications.
Build A Modern Web App Using Django And Javascript