mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Added ALLOWED_HOSTS and LOGGING settings
This commit is contained in:
parent
2f8c22dc55
commit
2287efb3b7
1 changed files with 34 additions and 1 deletions
|
@ -16,6 +16,13 @@ SITE_ID = 1
|
||||||
# Make this unique, and don't share it with anybody.
|
# Make this unique, and don't share it with anybody.
|
||||||
SECRET_KEY = ''
|
SECRET_KEY = ''
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = (
|
||||||
|
'dpaste.de',
|
||||||
|
'www.dpaste.de',
|
||||||
|
'localhost',
|
||||||
|
'127.0.0.1',
|
||||||
|
)
|
||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# I18N
|
# I18N
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
|
@ -116,3 +123,29 @@ INSTALLED_APPS = (
|
||||||
MAX_SNIPPETS_PER_USER = 25
|
MAX_SNIPPETS_PER_USER = 25
|
||||||
|
|
||||||
SENTRY_DSN = 'http://0afbf6df0a9749f9985059ed6c527b19:717d9800ba854149a7e7f6a501b2caa0@ohnoez.mahner.org/2'
|
SENTRY_DSN = 'http://0afbf6df0a9749f9985059ed6c527b19:717d9800ba854149a7e7f6a501b2caa0@ohnoez.mahner.org/2'
|
||||||
|
|
||||||
|
|
||||||
|
LOGGING = {
|
||||||
|
'version': 1,
|
||||||
|
'disable_existing_loggers': False,
|
||||||
|
'filters': {
|
||||||
|
'require_debug_false': {
|
||||||
|
'()': 'django.utils.log.RequireDebugFalse'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'handlers': {
|
||||||
|
'mail_admins': {
|
||||||
|
'level': 'ERROR',
|
||||||
|
'filters': ['require_debug_false'],
|
||||||
|
'class': 'django.utils.log.AdminEmailHandler'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
'django.request': {
|
||||||
|
'handlers': ['mail_admins'],
|
||||||
|
'level': 'ERROR',
|
||||||
|
'propagate': True,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue