Redirect multi-tenant urls to /cms also
This commit is contained in:
parent
9fca25ec5a
commit
24a9b8ab78
1 changed files with 2 additions and 0 deletions
|
@ -3,10 +3,12 @@ from django.conf.urls import include, url
|
||||||
from django.conf.urls.i18n import i18n_patterns
|
from django.conf.urls.i18n import i18n_patterns
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.views import static as static_view
|
from django.views import static as static_view
|
||||||
|
from django.views.generic import RedirectView
|
||||||
|
|
||||||
urlpatterns = i18n_patterns(
|
urlpatterns = i18n_patterns(
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
url(r'^cms/', include('cms.urls')),
|
url(r'^cms/', include('cms.urls')),
|
||||||
|
url(r'^$', RedirectView.as_view(url='/cms')),
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
|
|
Loading…
Reference in a new issue