From 24a9b8ab78eff5e414c791bc9c659714857ab99c Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 7 Apr 2018 00:13:24 +0200 Subject: [PATCH] Redirect multi-tenant urls to /cms also --- dynamicweb/urls_multi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dynamicweb/urls_multi.py b/dynamicweb/urls_multi.py index 752c353e..ffe59db5 100644 --- a/dynamicweb/urls_multi.py +++ b/dynamicweb/urls_multi.py @@ -3,10 +3,12 @@ from django.conf.urls import include, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.views import static as static_view +from django.views.generic import RedirectView urlpatterns = i18n_patterns( url(r'^admin/', include(admin.site.urls)), url(r'^cms/', include('cms.urls')), + url(r'^$', RedirectView.as_view(url='/cms')), ) urlpatterns += [