A
A
alzow2018-05-13 18:32:32
Django
alzow, 2018-05-13 18:32:32

How to use vue.js in a big django project?

There is a large django project where vue.js is planned to be integrated. This is not a SPA and the use of vue-router is out of the question. How correct is the approach of creating a new Vue.js application (code below) for each page? Perhaps there are other approaches or is it quite "ok"?

vm = new Vue({
        el: '#app',
        data: {},
        methods: {}
    })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Malyarov, 2018-05-13
@Konstantin18ko

I can say for myself, there are components, there are filters, there is a vue resource... I use a lot of things in Django + DRF + VueJS.
Static content - Django, dynamic DRF + VueJS.
The section of code is repeated, in a component. If not, then a new instance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question