Ticket #15187: 15187.diff

File 15187.diff, 686 bytes (added by Dan Carroll, 14 years ago)
  • django/middleware/common.py

     
    9292    def process_response(self, request, response):
    9393        "Send broken link emails and calculate the Etag, if needed."
    9494        if response.status_code == 404:
    95             if settings.SEND_BROKEN_LINK_EMAILS:
     95            if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG:
    9696                # If the referrer was from an internal link or a non-search-engine site,
    9797                # send a note to the managers.
    9898                domain = request.get_host()
Back to Top