Commit 37727153 authored by BERJON Matthieu's avatar BERJON Matthieu

Add the django site ID as an environment variable

The django site ID is used by third party applications to work properly.
It corresponds to the absolute URL of the website that differs in
production, qualification or development, therefore, I added it with its
default value for production.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 1ca1b2d0
......@@ -47,6 +47,10 @@ with env_loader.EnvironmentVarLoader(__name__, "ALLGO_",
default="/vol/rw/media",
help="path where the user-uploaded files are stored")
env_var("ALLGO_SITE_ID",
default="3",
help="default site ID, used by some third-party application")
#
# email
#
......
......@@ -55,7 +55,7 @@ DEBUG = env.ALLGO_DEBUG
ALLOWED_HOSTS = env.ALLGO_ALLOWED_HOSTS.split(",")
TIME_ZONE = 'UTC'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
SITE_ID = env.ALLGO_SITE_ID
USE_I18N = True
USE_L10N = True
USE_TZ = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment