summaryrefslogtreecommitdiff
path: root/django/conf/project_template/settings.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2011-09-16 16:41:38 +0000
committerCarl Meyer <carl@oddbird.net>2011-09-16 16:41:38 +0000
commit343004c4de332bfec09e8a57de775a46fecb18f9 (patch)
tree728d54b838e45651609432a00b0f84a07f9649bf /django/conf/project_template/settings.py
parentf9dad46d3665214ac80af06371fae10c55605086 (diff)
Fixed #16568 -- Added RequireDebugFalse filter to prevent sending 500 error emails when DEBUG is True in projects with no explicit LOGGING setting. Thanks to Andreas Pelme for report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/conf/project_template/settings.py')
-rw-r--r--django/conf/project_template/settings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/conf/project_template/settings.py b/django/conf/project_template/settings.py
index 3a2243fbc6..b92c1163c3 100644
--- a/django/conf/project_template/settings.py
+++ b/django/conf/project_template/settings.py
@@ -128,8 +128,7 @@ LOGGING = {
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
- '()': 'django.utils.log.CallbackFilter',
- 'callback': lambda r: not DEBUG
+ '()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {