D
D
Desperado072019-02-28 19:59:20
Django
Desperado07, 2019-02-28 19:59:20

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

1 answer(s)
O
OnYourLips, 2019-02-28
@OnYourLips

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.
It is more convenient to separate them into different repositories and work on them separately using the tools adopted in each ecosystem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question