Commit 1d560b1c authored by root's avatar root

Add prod.py.dist example file

parent 80827181
from .common import *
ALLOWED_HOSTS = [ "*" ]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'chocapix',
'HOST': 'localhost',
'USER': 'chocapix',
'PASSWORD': 'password',
}
}
ADMINS = (("Babe", "babe@binets.polytechnique.fr"),)
SERVER_EMAIL = 'babe@binets.polytechnique.fr'
SLACK_HOOK = True
# Kuzh - for Slack hook requests
PROXIES = {
"http": "http://129.104.247.2:8080/",
"https": "http://129.104.247.2:8080/"
}
IRC_HOOK = True
IRC_HOOK_URL = "http://129.104.201.57:3000/chocapix"
IRC_HOOK_KEY = "key"
# Logging - Slack notifications on Error 500
SLACK_WEBHOOK_ERROR_URL = "https://hooks.slack.com/services/T00000000/B00000000/00000000000000000000000r"
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'slack': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'bars_django.slack_handler.SlackHandler'
},
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['slack'],
'level': 'ERROR',
'propagate': True,
},
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment