Add i18n urls
This commit is contained in:
parent
178826fb4c
commit
3ce561efc7
@ -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"),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user