Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #11453 -- Added note on customizing SERVER_EMAIL for er…

…ror reporting. Thanks to seveas for the suggestion and draft text.

Merge of r11219 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5c2518539c42146d753f1e2cade4c0af627faeec 1 parent 7cfee79
@freakboy3742 freakboy3742 authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 docs/howto/error-reporting.txt
View
10 docs/howto/error-reporting.txt
@@ -23,6 +23,10 @@ administrators immediate notification of any errors. The :setting:`ADMINS` will
get a description of the error, a complete Python traceback, and details about
the HTTP request that caused the error.
+By default, Django will send email from root@localhost. However, some mail
+providers reject all email from this address. To use a different sender
+address, modify the :setting:`SERVER_EMAIL` setting.
+
To disable this behavior, just remove all entries from the :setting:`ADMINS`
setting.
@@ -33,12 +37,12 @@ Django can also be configured to email errors about broken links (404 "page
not found" errors). Django sends emails about 404 errors when:
* :setting:`DEBUG` is ``False``
-
+
* :setting:`SEND_BROKEN_LINK_EMAILS` is ``True``
-
+
* Your :setting:`MIDDLEWARE_CLASSES` setting includes ``CommonMiddleware``
(which it does by default).
-
+
If those conditions are met, Django will e-mail the users listed in the
:setting:`MANAGERS` setting whenever your code raises a 404 and the request has
a referer. (It doesn't bother to e-mail for 404s that don't have a referer --
Please sign in to comment.
Something went wrong with that request. Please try again.