Use /cms for redirection instead of incorrect namespaces

This commit is contained in:
PCoder 2018-04-03 23:28:47 +02:00
parent 69003c6913
commit 0ec29be4ec

View file

@ -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()
),
)