Settings de prod gités
This commit is contained in:
parent
57369c9e77
commit
911f9bbcdd
4 changed files with 55 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -112,3 +112,4 @@ migrations/
|
||||||
.sass-cache
|
.sass-cache
|
||||||
/static/
|
/static/
|
||||||
settings.py
|
settings.py
|
||||||
|
secrets.py
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
SECRET_KEY = 'toto'
|
|
|
@ -102,6 +102,13 @@ AUTHENTICATION_BACKENDS = (
|
||||||
'experiENS.auth.ENSCASBackend',
|
'experiENS.auth.ENSCASBackend',
|
||||||
)
|
)
|
||||||
|
|
||||||
CAS_SERVER_URL = "https://cas.eleves.ens.fr/"
|
CAS_SERVER_URL = "https://cas.eleves.ens.fr/" #SPI CAS
|
||||||
|
CAS_VERIFY_URL = "https://cas.eleves.ens.fr/"
|
||||||
|
CAS_IGNORE_REFERER = True
|
||||||
|
CAS_REDIRECT_URL = reverse_lazy('avisstage:perso')
|
||||||
|
CAS_EMAIL_FORMAT = "%s@clipper.ens.fr"
|
||||||
|
CAS_FORCE_CHANGE_USERNAME_CASE = "lower"
|
||||||
|
CAS_VERSION = 'CAS_2_SAML_1_0'
|
||||||
|
|
||||||
LOGIN_URL = reverse_lazy('login')
|
LOGIN_URL = reverse_lazy('login')
|
||||||
|
LOGOUT_URL = reverse_lazy('logout')
|
||||||
|
|
45
experiENS/settings_prod.py
Normal file
45
experiENS/settings_prod.py
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
from settings_base import *
|
||||||
|
|
||||||
|
from secrets import SECRET_KEY
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
from django.core.urlresolvers import reverse_lazy
|
||||||
|
|
||||||
|
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
BASE_DIR = os.path.dirname(PROJECT_DIR)
|
||||||
|
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = ["www.eleves.ens.fr"]
|
||||||
|
|
||||||
|
ADMINS = (
|
||||||
|
('Robin Champenois', 'champeno@clipper.ens.fr'),
|
||||||
|
)
|
||||||
|
|
||||||
|
ADMIN_LOGINS = [
|
||||||
|
"champeno",
|
||||||
|
]
|
||||||
|
|
||||||
|
SERVER_EMAIL = "experiens@www.eleves.ens.fr"
|
||||||
|
|
||||||
|
ROOT_URL = "/experiens/"
|
||||||
|
|
||||||
|
WSGI_APPLICATION = 'experiENS.wsgi.application'
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
|
'NAME': 'experiens',
|
||||||
|
'USER': 'experiens',
|
||||||
|
'PASSWORD': '',
|
||||||
|
'HOST': '',
|
||||||
|
'PORT': '5432',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
STATIC_URL = ROOT_URL + 'static/'
|
||||||
|
MEDIA_URL = ROOT_URL + 'media/'
|
||||||
|
|
||||||
|
STATIC_ROOT = os.path.join(BASE_DIR, '/static/')
|
||||||
|
|
||||||
|
EMAIL_HOST = "nef.ens.fr"
|
Loading…
Reference in a new issue