2017-04-10 23:18:00 +02:00
|
|
|
"""
|
|
|
|
Django development settings for the cof project.
|
|
|
|
The settings that are not listed here are imported from .common
|
|
|
|
"""
|
|
|
|
import os
|
|
|
|
|
2020-05-09 15:48:51 +02:00
|
|
|
from .common import BASE_DIR, INSTALLED_APPS
|
2017-04-10 23:18:00 +02:00
|
|
|
|
2020-07-04 13:30:54 +02:00
|
|
|
from .common import * # NOQA
|
|
|
|
|
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-05-09 15:48:51 +02:00
|
|
|
INSTALLED_APPS += ["bds", "events", "clubs"]
|
2017-08-08 01:24:00 +02:00
|
|
|
|
|
|
|
STATIC_ROOT = os.path.join(
|
2018-10-06 12:35:49 +02:00
|
|
|
os.path.dirname(os.path.dirname(BASE_DIR)), "public", "gestion", "static"
|
2017-08-08 01:24:00 +02:00
|
|
|
)
|
|
|
|
|
2017-04-10 23:18:00 +02:00
|
|
|
STATIC_URL = "/gestion/static/"
|
|
|
|
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media")
|
|
|
|
MEDIA_URL = "/gestion/media/"
|
2018-05-14 13:22:59 +02:00
|
|
|
|
|
|
|
|
2020-05-09 15:48:51 +02:00
|
|
|
# ---
|
|
|
|
# Auth-related stuff
|
|
|
|
# ---
|
|
|
|
|
|
|
|
LOGIN_URL = "admin:login"
|
|
|
|
LOGIN_REDIRECT_URL = "bds:home"
|