I have a DJango application that have several entries in URL patterns (urls.py):
urlpatterns = patterns(
\'\',
# change Language
(r\'^i18n/\', in
If you want just add a prefix for all URLs you can use the following code in urls.py file:
from django.conf.urls import include
.
.
.
urlpatterns = [
... # Your URL patterns
]
# Add 'prefix' to all urlpatterns
urlpatterns = [url(r'^prefix/', include(urlpatterns))]
It'll add prefix for all urlpatterns.