Ticket #13840: 404email.diff

File 404email.diff, 700 bytes (added by master, 14 years ago)
  • django/middleware/common.py

     
    8282    def process_response(self, request, response):
    8383        "Check for a flat page (for 404s) and calculate the Etag, if needed."
    8484        if response.status_code == 404:
    85             if settings.SEND_BROKEN_LINK_EMAILS:
     85            if settings.SEND_BROKEN_LINK_EMAILS and not settings.DEBUG:
    8686                # If the referrer was from an internal link or a non-search-engine site,
    8787                # send a note to the managers.
    8888                domain = request.get_host()
Back to Top