forked from DGNum/gestioCOF
revert settings_dev changes
This commit is contained in:
parent
e31dadad10
commit
f741c70c72
1 changed files with 19 additions and 18 deletions
|
@ -29,6 +29,9 @@ SECRET_KEY = 'q()(zn4m63i%5cp4)f+ww4-28_w+ly3q9=6imw2ciu&_(5_4ah'
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = ['127.0.0.1']
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'gestioncof',
|
'gestioncof',
|
||||||
|
@ -98,7 +101,6 @@ DATABASES = {
|
||||||
'NAME': os.environ['DBNAME'],
|
'NAME': os.environ['DBNAME'],
|
||||||
'USER': os.environ['DBUSER'],
|
'USER': os.environ['DBUSER'],
|
||||||
'PASSWORD': os.environ['DBPASSWD'],
|
'PASSWORD': os.environ['DBPASSWD'],
|
||||||
'HOST': os.environ.get('DBHOST', 'localhost'),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +126,7 @@ STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = '/var/www/static/'
|
STATIC_ROOT = '/var/www/static/'
|
||||||
|
|
||||||
STATICFILES_DIRS = (
|
STATICFILES_DIRS = (
|
||||||
os.path.join(BASE_DIR, 'static/'),
|
os.path.join(BASE_DIR, 'static/'),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Media upload (through ImageField, SiteField)
|
# Media upload (through ImageField, SiteField)
|
||||||
|
@ -136,32 +138,31 @@ MEDIA_URL = '/media/'
|
||||||
# Various additional settings
|
# Various additional settings
|
||||||
SITE_ID = 1
|
SITE_ID = 1
|
||||||
|
|
||||||
|
# URL prefix for admin static files -- CSS, JavaScript and images.
|
||||||
|
# Make sure to use a trailing slash.
|
||||||
|
# Examples: "http://foo.com/static/admin/", "/static/admin/".
|
||||||
|
ADMIN_MEDIA_PREFIX = '/static/grappelli/'
|
||||||
GRAPPELLI_ADMIN_HEADLINE = "GestioCOF"
|
GRAPPELLI_ADMIN_HEADLINE = "GestioCOF"
|
||||||
GRAPPELLI_ADMIN_TITLE = "<a href=\"/\">GestioCOF</a>"
|
GRAPPELLI_ADMIN_TITLE = "<a href=\"/\">GestioCOF</a>"
|
||||||
|
|
||||||
MAIL_DATA = {
|
PETITS_COURS_FROM = "Le COF <cof@ens.fr>"
|
||||||
'petits_cours': {
|
PETITS_COURS_BCC = "archivescof@gmail.com"
|
||||||
'FROM': "Le COF <cof@ens.fr>",
|
PETITS_COURS_REPLYTO = "cof@ens.fr"
|
||||||
'BCC': "archivescof@gmail.com",
|
|
||||||
'REPLYTO': "cof@ens.fr"},
|
|
||||||
'rappels': {
|
|
||||||
'FROM': 'Le BdA <bda@ens.fr>',
|
|
||||||
'REPLYTO': 'Le BdA <bda@ens.fr>'},
|
|
||||||
'revente': {
|
|
||||||
'FROM': 'BdA-Revente <bda-revente@ens.fr>',
|
|
||||||
'REPLYTO': 'BdA-Revente <bda-revente@ens.fr>'},
|
|
||||||
}
|
|
||||||
|
|
||||||
LOGIN_URL = "cof-login"
|
RAPPEL_FROM = 'Le BdA <bda@ens.fr>'
|
||||||
LOGIN_REDIRECT_URL = "home"
|
RAPPEL_REPLY_TO = RAPPEL_FROM
|
||||||
|
|
||||||
|
LOGIN_URL = "/gestion/login"
|
||||||
|
LOGIN_REDIRECT_URL = "/gestion/"
|
||||||
|
|
||||||
CAS_SERVER_URL = 'https://cas.eleves.ens.fr/'
|
CAS_SERVER_URL = 'https://cas.eleves.ens.fr/'
|
||||||
CAS_IGNORE_REFERER = True
|
CAS_IGNORE_REFERER = True
|
||||||
CAS_REDIRECT_URL = '/'
|
CAS_REDIRECT_URL = '/gestion/'
|
||||||
CAS_EMAIL_FORMAT = "%s@clipper.ens.fr"
|
CAS_EMAIL_FORMAT = "%s@clipper.ens.fr"
|
||||||
AUTHENTICATION_BACKENDS = (
|
AUTHENTICATION_BACKENDS = (
|
||||||
'django.contrib.auth.backends.ModelBackend',
|
'django.contrib.auth.backends.ModelBackend',
|
||||||
'gestioncof.shared.COFCASBackend',
|
'gestioncof.shared.COFCASBackend',
|
||||||
|
'kfet.backends.GenericTeamBackend',
|
||||||
)
|
)
|
||||||
|
|
||||||
# EMAIL_HOST="nef.ens.fr"
|
# EMAIL_HOST="nef.ens.fr"
|
||||||
|
@ -176,7 +177,7 @@ CHANNEL_LAYERS = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "asgi_redis.RedisChannelLayer",
|
"BACKEND": "asgi_redis.RedisChannelLayer",
|
||||||
"CONFIG": {
|
"CONFIG": {
|
||||||
"hosts": [(os.environ.get("REDIS_HOST", "localhost"), 6379)],
|
"hosts": [("localhost", 6379)],
|
||||||
},
|
},
|
||||||
"ROUTING": "cof.routing.channel_routing",
|
"ROUTING": "cof.routing.channel_routing",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue