diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/error-reporting.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt index 4642c39a92..c15c1d872d 100644 --- a/docs/howto/error-reporting.txt +++ b/docs/howto/error-reporting.txt @@ -84,10 +84,12 @@ crawlers often request:: import re IGNORABLE_404_URLS = ( re.compile(r'^/apple-touch-icon.*\.png$'), - re.compile(r'^/favicon.ico$), - re.compile(r'^/robots.txt$), + re.compile(r'^/favicon\.ico$), + re.compile(r'^/robots\.txt$), ) +(Note that these are regular expressions, so we put a backslash in front of +periods to escape them.) The best way to disable this behavior is to set :setting:`SEND_BROKEN_LINK_EMAILS` to ``False``. |
