Browse files

Fixed #15187 -- Ensure that missing page emails aren't sent when runn…

…ing under debug. Thanks to Dan Carroll for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 56ebab9 commit 4bb1b2304d73285411f00c41efa865bd3146abd1 @freakboy3742 freakboy3742 committed Jan 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/middleware/
@@ -92,7 +92,7 @@ def process_request(self, request):
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 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()

0 comments on commit 4bb1b23

Please sign in to comment.