Hey everyone!
I wanted to tell you about a collection of things I just published related to using Django with Vite.
As a backstory, about a year ago, I started using Vite as a replacement for Webpack on all my projects, and I’ve been super happy with the change. It’s faster, easier to set up, and lets you do some very nice things like auto-refresh your app when JS/CSS changes.
I’ve finally taken the time to revisit my “Modern JavaScript for Django Developers” series and update it with what I feel is the best front end setup for Django projects in 2025. There are three parts to this update:
-
A new guide: Adding Vite to Django, so you can use Modern JavaScript, React, and Tailwind CSS
-
A video walkthrough: Setting up a Django project with Vite, React, and Tailwind CSS
-
An open-source repository with the finished product you can use to start a new project: https://github.com/saaspegasus/django-vite-tailwind-starter/
Hope this is useful, and let me know if you have any questions or feedback!