From 0ec29be4ecb5240fd3b53f115cb31d4375ec456b Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 3 Apr 2018 23:28:47 +0200 Subject: [PATCH] Use /cms for redirection instead of incorrect namespaces --- dynamicweb/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index 1a7821af..0d676ed3 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -61,8 +61,8 @@ urlpatterns += i18n_patterns( ), name='blog_list_view' ), url(r'^cms/', include('cms.urls'), name="cms"), - url(r'^$', RedirectView.as_view(url=reverse_lazy('dynamicweb:cms')) - if REDIRECT_TO_CMS else LandingView.as_view() + url(r'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS + else LandingView.as_view() ), )