Answer the question
In order to leave comments, you need to log in
How to avoid url looping in django?
Hello! I have a 'shop' button on my site, and a 'back' button in the shop. And if you need to go back (from the store), then this code executes.
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^list.html/$', views.product_list, name = 'product_list'),
url(r'^list.html/index.html/$', views.index, name = 'index'),
]
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