From 4c5ff149f728a2c5dbb51b18a6a0e525fd482a5d Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 17 Feb 2018 16:52:54 +0100 Subject: [PATCH] Some multisite parameters --- dynamicweb/settings/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index aca3e05d..50b762ce 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -515,12 +515,18 @@ ANONYMOUS_USER_NAME = 'anonymous@ungleich.ch' GUARDIAN_GET_INIT_ANONYMOUS_USER = 'membership.models.get_anonymous_user_instance' MULTISITE_CMS_URLS = { + 'dynamicweb-development2.ungleich.ch': 'dynamicweb.urls', 'blog-dev2.ungleich.ch': 'dynamicweb.urls', 'nuglarus-dev2.ungleich.ch': 'dynamicweb.urls_multi', } MULTISITE_CMS_ALIASES = { } MULTISITE_CMS_FALLBACK = 'blog-dev2.ungleich.ch' +MULTISITE_FALLBACK = 'django.views.generic.base.RedirectView' + +MULTISITE_FALLBACK_KWARGS = {'url': 'https://datacenterlight.ch/', + 'permanent': False} + ############################################# # configurations for opennebula-integration #