Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/settings/production.py
Show All 39 Lines | raise ValueError( | ||||
config_file, )) | config_file, )) | ||||
for key in ('scheduler', 'private'): | for key in ('scheduler', 'private'): | ||||
if not conf.get(key): | if not conf.get(key): | ||||
raise ValueError( | raise ValueError( | ||||
"Production: invalid configuration; missing %s config entry." % ( | "Production: invalid configuration; missing %s config entry." % ( | ||||
key, )) | key, )) | ||||
ALLOWED_HOSTS += conf.get('allowed_hosts', []) | |||||
private_conf = conf['private'] | private_conf = conf['private'] | ||||
SECRET_KEY = private_conf['secret_key'] | SECRET_KEY = private_conf['secret_key'] | ||||
# https://docs.djangoproject.com/en/1.10/ref/settings/#logging | # https://docs.djangoproject.com/en/1.10/ref/settings/#logging | ||||
LOGGING = { | LOGGING = { | ||||
'version': 1, | 'version': 1, | ||||
'disable_existing_loggers': False, | 'disable_existing_loggers': False, | ||||
'formatters': { | 'formatters': { | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |