Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit d7036e52ab856b9e7125391cddcd18c08b5b0938 1 parent 4a4b6b2
Adrian Holovaty authored May 24, 2011
4  django/middleware/common.py
@@ -130,7 +130,7 @@ def _is_ignorable_404(uri):
130 130
     if getattr(settings, 'IGNORABLE_404_STARTS', ()):
131 131
         import warnings
132 132
         warnings.warn('The IGNORABLE_404_STARTS setting has been deprecated '
133  
-                      'in favour of IGNORABLE_404_URLS.',
  133
+                      'in favor of IGNORABLE_404_URLS.',
134 134
                       PendingDeprecationWarning)
135 135
         for start in settings.IGNORABLE_404_STARTS:
136 136
             if uri.startswith(start):
@@ -138,7 +138,7 @@ def _is_ignorable_404(uri):
138 138
     if getattr(settings, 'IGNORABLE_404_ENDS', ()):
139 139
         import warnings
140 140
         warnings.warn('The IGNORABLE_404_ENDS setting has been deprecated '
141  
-                      'in favour of IGNORABLE_404_URLS.',
  141
+                      'in favor of IGNORABLE_404_URLS.',
142 142
                       PendingDeprecationWarning)
143 143
         for end in settings.IGNORABLE_404_ENDS:
144 144
             if uri.endswith(end):
6  docs/howto/error-reporting.txt
@@ -84,10 +84,12 @@ crawlers often request::
84 84
     import re
85 85
     IGNORABLE_404_URLS = (
86 86
         re.compile(r'^/apple-touch-icon.*\.png$'),
87  
-        re.compile(r'^/favicon.ico$),
88  
-        re.compile(r'^/robots.txt$),
  87
+        re.compile(r'^/favicon\.ico$),
  88
+        re.compile(r'^/robots\.txt$),
89 89
     )
90 90
 
  91
+(Note that these are regular expressions, so we put a backslash in front of
  92
+periods to escape them.)
91 93
 
92 94
 The best way to disable this behavior is to set
93 95
 :setting:`SEND_BROKEN_LINK_EMAILS` to ``False``.

0 notes on commit d7036e5

Please sign in to comment.
Something went wrong with that request. Please try again.