Hi Sambhavi, thank you for this post. :) I was looking for this integration and I managed to use it in my first test now. But I have one problem. Since I'm new to Django and Vue (I'm not a programmer at all) it's not easy for me to discover the reason. HMR is not working. I can see VITE updating the static files and I can see in my console logs, that my browser is missing the previous static files, but there's no update till I reload the page manually. There are a lot of problems and workarounds regarding HMR, but I don't know what to do. Are you using HMR in your project and how does it work? Thanks a lot! :)
I Sambhavi, I'm Alfonso. I've come to this tutorial because I heard a podcast (Pybytes) which took me to your Linkdn and finally to here. I followed all the steps because I am interested in how Vue.js is mounted in Django without using api so as a feedback, I want to mention the following:
I appreciate the way you associated vue.js with django as this approach is not common (AFAIK)
Sambhavi Dhanabalan
Building SaaS products, internal tools, and automation with FlutterFlow, Supabase, and no-code platforms. Always learning, always building.
Wolfram Kriesing
Crafting (and) JavaScript
I like your approach, thanks for sharing it. Imho this makes so much more sense, it leverages the power of django, allows for "static" pages or MPA instead of SPA when needed without preventing to go full SPA. I believe this is also the way web dev was intended we just took the SPA hype a bit to far imho.