[Vuejs]-Integrating Vue.js with Django

1👍

Just to elaborate on what @Xinlin Feng said, what I might suggest. is to implement a VueJs app within a Django Jinja Template. There are plenty of resources you can find regarding that like this.

This can be useful in cases of SPAs, like dashboards, in which subsequent calls and updates can be made as a REST API calls to your Django backend application. The tricky part would be including authentication in the front end app, where the user is already authenticated in a session. This is avoided if the user is asked to sign in after the app is launched.

1👍

I actually can have an idea, when I doing my intern last year, I was doing the exact same thing you looking for.
My recommendation is to use Django-REST-framework, and it will provide restful api as urls and returning json object to front end. While at the same time, use vue.js to create front end components, in order to retrieve data back from backend and render, just send http request from frontend to urls Django-REST-framework builds.

Leave a comment