Introduce UNGLEICH_BLOG_SITE_ID

- It should be initialized with the SITE_ID of the site that
hosts the blog
- Without this, django_parler is unhappy to show EN/DE options
when creating blog articles

See redmine issue #4465
This commit is contained in:
PCoder 2019-01-07 22:30:52 +01:00
parent 087e03315d
commit d80b6cf490

View file

@ -56,7 +56,9 @@ dotenv.read_dotenv("{0}/.env".format(PROJECT_DIR))
from multisite import SiteID
SITE_ID = SiteID(default=1)
UNGLEICH_BLOG_SITE_ID = int_env("UNGLEICH_BLOG_SITE_ID")
SITE_ID = SiteID(default=(UNGLEICH_BLOG_SITE_ID if
UNGLEICH_BLOG_SITE_ID > 0 else 1))
APP_ROOT_ENDPOINT = "/"
APPEND_SLASH = True