Ticket #15187: 15187.diff
File 15187.diff, 686 bytes (added by , 14 years ago) |
---|
-
django/middleware/common.py
92 92 def process_response(self, request, response): 93 93 "Send broken link emails and calculate the Etag, if needed." 94 94 if response.status_code == 404: 95 if settings.SEND_BROKEN_LINK_EMAILS :95 if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG: 96 96 # If the referrer was from an internal link or a non-search-engine site, 97 97 # send a note to the managers. 98 98 domain = request.get_host()