gestioCOF/cof/settings/bds_prod.py

39 lines
851 B
Python
Raw Normal View History

"""
Django development settings for the cof project.
The settings that are not listed here are imported from .common
"""
import os
from .common import * # NOQA
2020-07-10 22:53:44 +02:00
from .common import BASE_DIR, INSTALLED_APPS
# ---
# BDS-only Django settings
# ---
ALLOWED_HOSTS = ["bds.ens.fr", "www.bds.ens.fr", "dev.cof.ens.fr"]
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/"
# ---
# 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"
LOGIN_REDIRECT_URL = "bds:home"
2020-07-30 12:04:04 +02:00
LOGOUT_REDIRECT_URL = "bds:home"