Ticket #3135: 3135.diff
File 3135.diff, 2.8 KB (added by , 18 years ago) |
---|
-
settings.txt
197 197 198 198 (('John', 'john@example.com'), ('Mary', 'mary@example.com')) 199 199 200 201 Note that Django will email all of these people when there's an error, see ``Django Error-reporting via Email`` for more information. 202 203 200 204 ALLOWED_INCLUDE_ROOTS 201 205 --------------------- 202 206 … … 414 418 415 419 Default: ``('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')`` 416 420 417 See also ``IGNORABLE_404_STARTS`` .421 See also ``IGNORABLE_404_STARTS`` and ``Django Error-reporting via Email`` 418 422 419 423 IGNORABLE_404_STARTS 420 424 -------------------- … … 422 426 Default: ``('/cgi-bin/', '/_vti_bin', '/_vti_inf')`` 423 427 424 428 A tuple of strings that specify beginnings of URLs that should be ignored by 425 the 404 e-mailer. See ``SEND_BROKEN_LINK_EMAILS`` and ``IGNORABLE_404_ENDS``. 429 the 404 e-mailer. See ``SEND_BROKEN_LINK_EMAILS``, ``IGNORABLE_404_ENDS`` and 430 ``Django Error-reporting via Email`` 426 431 427 432 INSTALLED_APPS 428 433 -------------- … … 631 636 Whether to send an e-mail to the ``MANAGERS`` each time somebody visits a 632 637 Django-powered page that is 404ed with a non-empty referer (i.e., a broken 633 638 link). This is only used if ``CommonMiddleware`` is installed (see the 634 `middleware docs`_). See also ``IGNORABLE_404_STARTS`` and635 ``IGNORABLE_404_ENDS`` .639 `middleware docs`_). See also ``IGNORABLE_404_STARTS``, 640 ``IGNORABLE_404_ENDS`` and ``Django Error-reporting via Email`` 636 641 637 642 SERVER_EMAIL 638 643 ------------ … … 967 972 968 973 It boils down to this: Use exactly one of either ``configure()`` or 969 974 ``DJANGO_SETTINGS_MODULE``. Not both, and not neither. 975 976 977 Django Error-reporting via Email 978 ================================ 979 980 When ``DEBUG`` mode is turned off, Django will email the users listed in the ``ADMIN`` setting whenever a server error occurs. This is most commonly when a resource is not found (404 errors), or when there's been an internal server error (500). This gives the administrators immediate notification of any errors. 981 982 However, there are certain cases when this is not appropriate. For example, it's quite common to get miscreants doing random scans for vulnerabilities, such as vulnerable versions of ``xmlhttp.php`` or ``PhpMyAdmin``. Since Django is not affected by these, they can be safely ignored. 983 984 You can tell Django to stop reporting these 404's by adding the page to the ``IGNORABLE_404_ENDS`` setting: 985 986 IGNORABLE_404_ENDS = ('xmlhttp.php') 987 988 Or, you can ignore it using the start of the request path, by using the ``IGNORABLE_404_STARTS`` setting: 989 990 IGNORABLE_404_STARTS = ('/phpmyadmin/') 991 992 Finally, if you wish to turn off this email reporting completely, just remove all entries from the ``ADMINS`` setting. 993 No newline at end of file