2017-04-10 23:18:00 +02:00
|
|
|
"""
|
2021-02-08 19:19:54 +01:00
|
|
|
Settings de production de GestioBDS.
|
|
|
|
|
|
|
|
Surcharge les settings définis dans common.py
|
2017-04-10 23:18:00 +02:00
|
|
|
"""
|
2021-02-08 19:19:54 +01:00
|
|
|
|
2020-07-04 13:30:54 +02:00
|
|
|
from .common import * # NOQA
|
2020-08-28 18:18:54 +02:00
|
|
|
from .common import INSTALLED_APPS
|
2020-07-04 13:30:54 +02:00
|
|
|
|
2020-05-09 15:48:51 +02:00
|
|
|
# ---
|
|
|
|
# BDS-only Django settings
|
|
|
|
# ---
|
2017-04-10 23:18:00 +02:00
|
|
|
|
2020-05-09 15:48:51 +02:00
|
|
|
ALLOWED_HOSTS = ["bds.ens.fr", "www.bds.ens.fr", "dev.cof.ens.fr"]
|
2017-04-10 23:18:00 +02:00
|
|
|
|
2020-07-30 12:04:04 +02:00
|
|
|
INSTALLED_APPS += ["bds", "events", "clubs", "authens"]
|
2017-08-08 01:24:00 +02:00
|
|
|
|
2020-08-24 14:56:03 +02:00
|
|
|
STATIC_ROOT = "/srv/bds.ens.fr/public/gestion2/static"
|
|
|
|
STATIC_URL = "/gestion2/static/"
|
|
|
|
MEDIA_ROOT = "/srv/bds.ens.fr/gestion2/media"
|
|
|
|
MEDIA_URL = "/gestion2/media/"
|
2018-05-14 13:22:59 +02:00
|
|
|
|
|
|
|
|
2020-05-09 15:48:51 +02:00
|
|
|
# ---
|
|
|
|
# Auth-related stuff
|
|
|
|
# ---
|
|
|
|
|
2020-07-30 12:04:04 +02:00
|
|
|
AUTHENTICATION_BACKENDS = [
|
|
|
|
"django.contrib.auth.backends.ModelBackend",
|
|
|
|
"authens.backends.ENSCASBackend",
|
|
|
|
"authens.backends.OldCASBackend",
|
|
|
|
]
|
|
|
|
|
|
|
|
AUTHENS_USE_OLDCAS = False
|
|
|
|
|
|
|
|
LOGIN_URL = "authens:login"
|
2020-05-09 15:48:51 +02:00
|
|
|
LOGIN_REDIRECT_URL = "bds:home"
|
2020-07-30 12:04:04 +02:00
|
|
|
LOGOUT_REDIRECT_URL = "bds:home"
|