1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed IGNORABLE_404_STARTS/ENDS settings.

This commit is contained in:
Aymeric Augustin
2012-12-24 23:22:33 +01:00
parent 4a6490a4a0
commit 641acf76e7
3 changed files with 0 additions and 38 deletions

View File

@@ -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):