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
|
|
|
|
|
2017-08-08 01:24:00 +02:00
|
|
|
from .common import * # NOQA
|
2018-05-14 13:22:59 +02:00
|
|
|
from .common import BASE_DIR, import_secret
|
2017-04-10 23:18:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
DEBUG = False
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [
|
|
|
|
"cof.ens.fr",
|
|
|
|
"www.cof.ens.fr",
|
|
|
|
"dev.cof.ens.fr"
|
|
|
|
]
|
|
|
|
|
2017-08-08 01:24:00 +02:00
|
|
|
|
|
|
|
STATIC_ROOT = os.path.join(
|
|
|
|
os.path.dirname(os.path.dirname(BASE_DIR)),
|
|
|
|
"public",
|
2017-09-12 09:22:41 +02:00
|
|
|
"gestion",
|
2017-08-08 01:24:00 +02:00
|
|
|
"static",
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
RECAPTCHA_PUBLIC_KEY = import_secret("RECAPTCHA_PUBLIC_KEY")
|
|
|
|
RECAPTCHA_PRIVATE_KEY = import_secret("RECAPTCHA_PRIVATE_KEY")
|