diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-30 13:11:45 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-30 13:11:45 +0000 |
| commit | 4bb1b2304d73285411f00c41efa865bd3146abd1 (patch) | |
| tree | 8d52ce8c79ed6214e007a3c88114289be5ebe10a | |
| parent | 56ebab9d8596f63db38053816ec961656e49ed38 (diff) | |
Fixed #15187 -- Ensure that missing page emails aren't sent when running under debug. Thanks to Dan Carroll for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/middleware/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/common.py b/django/middleware/common.py index b99aad08cd..07c6ff6679 100644 --- a/django/middleware/common.py +++ b/django/middleware/common.py @@ -92,7 +92,7 @@ class CommonMiddleware(object): def process_response(self, request, response): "Send broken link emails and calculate the Etag, if needed." if response.status_code == 404: - if settings.SEND_BROKEN_LINK_EMAILS: + if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG: # If the referrer was from an internal link or a non-search-engine site, # send a note to the managers. domain = request.get_host() |
