B
B
borisovdenis2017-07-17 08:43:52
Django
borisovdenis, 2017-07-17 08:43:52

How to switch from Django, JQuery, HTML, CSS stack to Django, Vue.js?

There is a project working on the Django stack, HTML (django templates), CSS (Bootstrap, SASS), jQuery. The possibility of moving the front-end to Vue.js is being considered. Tell me, please, is it possible to embed Vue.js into a Django project at all. If yes, then tell me how it would be more correct to do this, if not, then please explain why.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kulakov, 2017-07-17
@borisovdenis

You need to understand - you need it)
1. You have a classic web application architecture, i.e. html renders the server itself.
2. Vue.js is more geared towards spa, i.e. rendering happens on the client side.
If you need good indexing, then you will have to think about using SSR and vue together.
The transition is carried out as follows: write the client part in vue, remove the templates in django. Vue interacts with django through rest, you can use djando-rest-framework for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question