Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed IGNORABLE_404_STARTS/ENDS settings.

  • Loading branch information...
commit 641acf76e706dcff0932b0825f1acbde715cc2c4 1 parent 4a6490a
Aymeric Augustin aaugustin authored
14 django/middleware/common.py
View
@@ -143,20 +143,6 @@ def _is_ignorable_404(uri):
"""
Returns True if a 404 at the given URL *shouldn't* notify the site managers.
"""
- if getattr(settings, 'IGNORABLE_404_STARTS', ()):
- import warnings
- warnings.warn('The IGNORABLE_404_STARTS setting has been deprecated '
- 'in favor of IGNORABLE_404_URLS.', DeprecationWarning)
- for start in settings.IGNORABLE_404_STARTS:
- if uri.startswith(start):
- return True
- if getattr(settings, 'IGNORABLE_404_ENDS', ()):
- import warnings
- warnings.warn('The IGNORABLE_404_ENDS setting has been deprecated '
- 'in favor of IGNORABLE_404_URLS.', DeprecationWarning)
- for end in settings.IGNORABLE_404_ENDS:
- if uri.endswith(end):
- return True
return any(pattern.search(uri) for pattern in settings.IGNORABLE_404_URLS)
def _is_internal_request(domain, referer):
8 docs/howto/error-reporting.txt
View
@@ -101,14 +101,6 @@ The best way to disable this behavior is to set
records are ignored, but you can use them for error reporting by writing a
handler and :doc:`configuring logging </topics/logging>` appropriately.
-.. seealso::
-
- .. versionchanged:: 1.4
-
- Previously, two settings were used to control which URLs not to report:
- :setting:`IGNORABLE_404_STARTS` and :setting:`IGNORABLE_404_ENDS`. They
- were replaced by :setting:`IGNORABLE_404_URLS`.
-
.. _filtering-error-reports:
Filtering error reports
16 docs/ref/settings.txt
View
@@ -2244,22 +2244,6 @@ Default: Not defined
The site-specific user profile model used by this site. See
:ref:`User profiles <auth-profiles>`.
-.. setting:: IGNORABLE_404_ENDS
-
-IGNORABLE_404_ENDS
-------------------
-
-.. deprecated:: 1.4
- This setting has been superseded by :setting:`IGNORABLE_404_URLS`.
-
-.. setting:: IGNORABLE_404_STARTS
-
-IGNORABLE_404_STARTS
---------------------
-
-.. deprecated:: 1.4
- This setting has been superseded by :setting:`IGNORABLE_404_URLS`.
-
.. setting:: URL_VALIDATOR_USER_AGENT
URL_VALIDATOR_USER_AGENT
Please sign in to comment.
Something went wrong with that request. Please try again.