Merge pull request #612 from pcoder/bugifix/cms_redirect_for_multitenant_urls_also

bugfix/Redirect multi-tenant urls to /cms also
This commit is contained in:
Pcoder 2018-04-07 00:13:14 +02:00 committed by GitHub
commit 56f6c87fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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