2016-07-23 10:05:29 +00:00
|
|
|
from ponyconf.settings import *
|
|
|
|
|
|
|
|
SECRET_KEY = 'CHANGE ME'
|
|
|
|
|
2017-11-30 22:49:26 +00:00
|
|
|
DEBUG = False
|
2016-07-23 10:05:29 +00:00
|
|
|
|
2017-11-30 22:49:26 +00:00
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'handlers': {
|
|
|
|
'file': {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'class': 'logging.FileHandler',
|
|
|
|
'filename': '/srv/www/ponyconf/log/debug.log',
|
|
|
|
},
|
|
|
|
'mail_admins': {
|
|
|
|
'class': 'django.utils.log.AdminEmailHandler',
|
|
|
|
'level': 'ERROR',
|
|
|
|
# But the emails are plain text by default - HTML is nicer
|
|
|
|
'include_html': True,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'django.request': {
|
|
|
|
'handlers': ['file', 'mail_admins'],
|
|
|
|
'level': 'WARNING',
|
|
|
|
'propagate': True,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
STATIC_ROOT = '/srv/www/ponyconf/webdir/static'
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
|
|
|
|
MEDIA_ROOT = '/srv/www/ponyconf/webdir/media'
|
|
|
|
MEDIA_URL = '/media/'
|
|
|
|
|
|
|
|
DEFAULT_FROM_EMAIL = 'noreply@example.org'
|
|
|
|
SERVER_EMAIL = 'ponyconf@example.org'
|
2016-07-23 10:05:29 +00:00
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
|
|
EMAIL_HOST = 'smtp'
|
2017-11-30 22:49:26 +00:00
|
|
|
EMAIL_SUBJECT_PREFIX = "[PROD] "
|
|
|
|
EMAIL_PORT = 25
|
|
|
|
|
|
|
|
ADMINS = (
|
|
|
|
('PonyConf Admins', 'admin@example.org'),
|
|
|
|
)
|
2016-07-23 10:05:29 +00:00
|
|
|
|
|
|
|
TIME_ZONE = 'Europe/Paris'
|
|
|
|
LANGUAGE_CODE = 'fr-FR'
|
2017-11-30 22:49:26 +00:00
|
|
|
|
|
|
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
|
|
|
|
|
|
|
USE_X_FORWARDED_HOST = True
|
|
|
|
|
|
|
|
del SITE_ID
|
|
|
|
|
|
|
|
CACHES = {
|
|
|
|
'default': {
|
|
|
|
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
|
|
|
|
'LOCATION': '127.0.0.1:11211',
|
|
|
|
'KEY_PREFIX': 'ponyconf.prod.',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SELECT2_CACHE_BACKEND = 'default'
|
|
|
|
|
|
|
|
# Use CDN:
|
|
|
|
del SELECT2_CSS
|
|
|
|
del SELECT2_JS
|
|
|
|
del SELECT2_I18N_PATH
|
|
|
|
del BOOTSTRAP3
|