bornhack-website/bornhack/settings/production.py

51 lines
1.1 KiB
Python
Raw Normal View History

2015-10-03 01:07:05 +00:00
from .base import *
import environ
env = environ.Env()
2015-10-03 01:07:05 +00:00
environ.Env.read_env()
DEBUG = False
SECRET_KEY = env('SECRET_KEY')
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
2015-10-03 01:07:05 +00:00
DATABASES = {
'default': env.db(),
}
2016-05-02 20:38:49 +00:00
EMAIL_HOST = env('EMAIL_HOST')
EMAIL_PORT = env('EMAIL_PORT')
EMAIL_HOST_USER = env('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = env('EMAIL_USE_TLS')
2016-05-02 20:47:37 +00:00
DEFAULT_FROM_EMAIL = env('DEFAULT_FROM_EMAIL')
SERVER_EMAIL = env('DEFAULT_FROM_EMAIL')
2016-05-07 09:28:24 +00:00
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
},
'console': {
'level':'DEBUG',
'class':'logging.StreamHandler',
},
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
ADMINS = (
('bornhack sysadm', 'sysadm@bornhack.org'),
)
2016-05-16 19:03:50 +00:00
LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', 'bornhack_2016_letterhead.pdf')