S
S
smf0022016-09-15 14:22:22
Django
smf002, 2016-09-15 14:22:22

Django and Angular how to make direct url?

When visiting the url /, one html page is returned to which angular is connected. After the return of this page, all the work on routing is already taken over by angular. How to make it possible to go directly to a specific url bypassing the index page?
For example:
in the index page there is a link to www.mysite.ru/page1 which is processed by angular, how to implement the ability to navigate to this url without clicking the link on the index page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-09-16
@smf002

It is not clear why this mix. Angular can give nginx static, why put a whole python on static for each user? And on django, write down www.django-rest-framework.org

I
iegor, 2016-09-15
@iegor

on any url you give an index page in which angular intercepts your url and draws what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question