Ticket #13840: 404email.diff
File 404email.diff, 700 bytes (added by , 14 years ago) |
---|
-
django/middleware/common.py
82 82 def process_response(self, request, response): 83 83 "Check for a flat page (for 404s) and calculate the Etag, if needed." 84 84 if response.status_code == 404: 85 if settings.SEND_BROKEN_LINK_EMAILS :85 if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG: 86 86 # If the referrer was from an internal link or a non-search-engine site, 87 87 # send a note to the managers. 88 88 domain = request.get_host()