﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15187	CommonMiddleware should only send broken link emails if DEBUG is False	Dan Carroll	Dan Carroll	"According to the documentation on error reporting (see here: http://docs.djangoproject.com/en/dev/howto/error-reporting/), broken link emails are only sent if the following conditions are true (and CommonMiddleware is enabled):
* DEBUG is False
* SEND_BROKEN_LINK_EMAILS is True

Right now, CommonMiddleware.py only checks the second condition:
{{{
if settings.SEND_BROKEN_LINK_EMAILS:
    ...
}}}

In this case, I believe the best fix is to keep Django in line with the documentation, since broken link emails are unnecessary in an environment where DEBUG = True.  Here is a quick look at the fix:
{{{
if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG:
    ...
}}}"		closed	Core (Other)	1.2		fixed	common middleware		Ready for checkin	1	0	0	0	0	0
