Answer the question
In order to leave comments, you need to log in
Why doesn't Django redirect to simple urls work?
Hello everyone
I've added built-in Django redirects.
I write the redirect address from /arsenal1
to https://toster.ru/
- It doesn't work.
I write like this, for example, /arsenal1/
to https://toster.ru/
- it works, but it's not what I need.
There is an opinion that this url pattern is given priority over the redirect. But how to change it in this case? After all, built-in redirects are simply added to setting.py and are not indicated in url.py.
url(r'^arsenal(?P<arsenal_id>[0-9]+)$', views.arsenal, name='arsenal'),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question