Redirect multi-tenant urls to /cms also

This commit is contained in:
PCoder 2018-04-07 00:13:24 +02:00
parent 9fca25ec5a
commit 24a9b8ab78

View file

@ -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 += [