experiENS/app/settings_prod.py

50 lines
971 B
Python
Raw Normal View History

2021-02-08 02:27:37 +01:00
import os
2017-05-18 23:24:02 +02:00
2021-02-08 02:27:37 +01:00
from .settings_base import * # noqa
2017-05-18 23:24:02 +02:00
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(PROJECT_DIR)
DEBUG = False
ALLOWED_HOSTS = ["www.eleves.ens.fr"]
2021-02-07 23:15:47 +01:00
ADMINS = (("Robin Champenois", "champeno@clipper.ens.fr"),)
2017-05-18 23:24:02 +02:00
ADMIN_LOGINS = [
"champeno",
]
SERVER_EMAIL = "experiens@www.eleves.ens.fr"
ROOT_URL = "/experiens/"
2021-02-07 23:15:47 +01:00
WSGI_APPLICATION = "experiENS.wsgi.application"
2017-05-18 23:24:02 +02:00
DATABASES = {
2021-02-07 23:15:47 +01:00
"default": {
"ENGINE": "django.contrib.gis.db.backends.postgis",
"NAME": "experiens",
"USER": "experiens",
"PASSWORD": "",
"HOST": "",
"PORT": "5432",
2017-05-18 23:24:02 +02:00
}
}
2021-02-07 23:15:47 +01:00
STATIC_URL = ROOT_URL + "static/"
MEDIA_URL = ROOT_URL + "media/"
2017-05-18 23:24:02 +02:00
2021-02-07 23:15:47 +01:00
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
2017-05-18 23:24:02 +02:00
EMAIL_HOST = "nef.ens.fr"
2017-06-20 00:09:53 +02:00
ELASTICSEARCH_DSL = {
2021-02-07 23:15:47 +01:00
"default": {"hosts": "127.0.0.1:9200"},
2017-06-20 00:09:53 +02:00
}
2018-12-29 16:30:28 +01:00
2021-02-07 23:15:47 +01:00
CLIPPER_LDAP_SERVER = "ldaps://ldap.spi.ens.fr:636"
2019-01-27 23:52:21 +01:00
DEFAULT_FROM_EMAIL = "experiens-no-reply@www.eleves.ens.fr"