From f93c5733fb80eb2664fa5a575562b7013bfa860c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 14 May 2013 13:23:40 +0200 Subject: [PATCH] i18n prefix in URLs --- umap/urls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/umap/urls.py b/umap/urls.py index f5f31ea1..ceb6a735 100644 --- a/umap/urls.py +++ b/umap/urls.py @@ -1,5 +1,6 @@ from django.conf import settings from django.conf.urls.static import static +from django.conf.urls.i18n import i18n_patterns from django.conf.urls.defaults import patterns, url, include from django.contrib.staticfiles.urls import staticfiles_urlpatterns @@ -10,13 +11,14 @@ from . import views admin.autodiscover() urlpatterns = patterns('', - (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), + url(r'', include('social_auth.urls')), +) +urlpatterns += i18n_patterns('', url(r'^$', views.home, name="home"), url(r'^search/$', views.search, name="search"), url(r'^about/$', views.about, name="about"), url(r'^user/(?P[-_\w]+)/$', views.user_maps, name='user_maps'), - url(r'', include('social_auth.urls')), (r'', include('leaflet_storage.urls')), )