Make showcase url i18n aware

This commit is contained in:
Yohan Boniface 2014-02-10 21:53:24 +01:00
parent 0cfd560b26
commit 4578446aad

View file

@ -17,10 +17,10 @@ urlpatterns = patterns('',
url(r'', include('social_auth.urls')),
# We don't want it to be localized
url(r'^m/(?P<pk>\d+)/$', MapShortUrl.as_view(), name='umap_short_url'),
url(r'^showcase/$', cache_page(24 * 60 * 60)(views.showcase), name='maps_showcase'),
)
urlpatterns += i18n_patterns('',
url(r'^$', views.home, name="home"),
url(r'^showcase/$', cache_page(24 * 60 * 60)(views.showcase), name='maps_showcase'),
url(r'^search/$', views.search, name="search"),
url(r'^about/$', views.about, name="about"),
url(r'^user/(?P<username>[-_\w]+)/$', views.user_maps, name='user_maps'),