From a30e8a6adfe6236670110586ed550ad4da0c335d Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 15 Feb 2018 10:58:06 +0100 Subject: [PATCH] Configure multisite SITE_ID --- dynamicweb/settings/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 8684ede0..4c904891 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -54,7 +54,8 @@ PROJECT_DIR = os.path.abspath( # load .env file dotenv.read_dotenv("{0}/.env".format(PROJECT_DIR)) -SITE_ID = 1 +from multisite import SiteID +SITE_ID = SiteID(default=1) APP_ROOT_ENDPOINT = "/" APPEND_SLASH = True