mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Made some small tweaks/fixes to documentation from IGNORABLE_404_URLS changeset [16160]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4a4b6b271e
commit
d7036e52ab
2 changed files with 6 additions and 4 deletions
|
@ -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``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue