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:
parent
087e03315d
commit
d80b6cf490
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue