diff --git a/ojusomap/urls.py b/ojusomap/urls.py index 38e32f3..953a5ad 100644 --- a/ojusomap/urls.py +++ b/ojusomap/urls.py @@ -14,6 +14,7 @@ Including another URLconf 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import include, url +from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.contrib.auth.models import User from apps.map.models import CaseStudy @@ -47,8 +48,11 @@ apirouter.register(r'users', UserViewSet) apirouter.register(r'case-studies', CaseStudyViewSet) urlpatterns = [ - url(r'', include('apps.map.urls'), name="map"), url(r'api/', include(apirouter.urls)), url(r'^admin/', admin.site.urls), url(r'^cas/', include('cas_server.urls', namespace='cas_server')), ] + +urlpatterns += i18n_patterns( + url(r'', include('apps.map.urls'), name="map"), +)