Z
Z
zelsky2017-07-24 18:38:21
Django
zelsky, 2017-07-24 18:38:21

Vue and Django in production?

How to connect vue-router and django urls if 2 urls should be processed. Vue and the rest django ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem, 2017-07-25
@ulkoart

using nginx

Z
zelsky, 2017-07-25
@zelsky

solution
def home(request):
return ('index.html')

A
Alexey Ovdienko, 2017-08-03
@doubledare

This
Like janga has its own urls, vue has its own. And for vue, specify the base url, the same as in jung, you specify which url will be used to render the template with vue.
In fact, in the django visibility urls - the django renderer will work, as soon as it enters the Vue url - the frontend router will take over

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question