Answer the question
In order to leave comments, you need to log in
How to add a Vue.js application to a Django site?
There is the most common site on Django (not REST). It was necessary to add a designer of postcards. The constructor was eventually implemented in Vue.js. The problem is adding it to the site. The application has dependencies, it uses third-party components, so the option to simply include vue.js through a script does not work. The constructor is needed only on one page and that's it, it is desirable to keep the ability to use the django template.
The search for a solution caused the final confusion in my head. The examples mainly use the separation of the server - Rest Framework and the frontend - vue.js (which is not necessary in my case). As I understand it, I need to use Webpack (there is django-webpack-loader), Babel, but according to the examples there, again, the frontend is completely given to vue.
Maybe someone has experienced something similar and can offer some advice.
Answer the question
In order to leave comments, you need to log in
Maybe someone has experienced something similar and can offer some advice.Still, you should not mix two different applications into one project and one build system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question