mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Removed links to deprecated IGNORABLE_404_STARTS/ENDS settings.
refs #19516 and 641acf76e7
This commit is contained in:
parent
a7b7d6320c
commit
a04df803a5
4 changed files with 30 additions and 27 deletions
|
|
@ -813,11 +813,12 @@ For more details, see the documentation about
|
|||
|
||||
Until Django 1.3, it was possible to exclude some URLs from Django's
|
||||
:doc:`404 error reporting</howto/error-reporting>` by adding prefixes to
|
||||
:setting:`IGNORABLE_404_STARTS` and suffixes to :setting:`IGNORABLE_404_ENDS`.
|
||||
``IGNORABLE_404_STARTS`` and suffixes to ``IGNORABLE_404_ENDS``.
|
||||
|
||||
In Django 1.4, these two settings are superseded by
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular expressions.
|
||||
Django won't send an email for 404 errors on URLs that match any of them.
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular
|
||||
expressions. Django won't send an email for 404 errors on URLs that match any
|
||||
of them.
|
||||
|
||||
Furthermore, the previous settings had some rather arbitrary default values::
|
||||
|
||||
|
|
@ -827,12 +828,12 @@ Furthermore, the previous settings had some rather arbitrary default values::
|
|||
|
||||
It's not Django's role to decide if your website has a legacy ``/cgi-bin/``
|
||||
section or a ``favicon.ico``. As a consequence, the default values of
|
||||
:setting:`IGNORABLE_404_URLS`, :setting:`IGNORABLE_404_STARTS` and
|
||||
:setting:`IGNORABLE_404_ENDS` are all now empty.
|
||||
:setting:`IGNORABLE_404_URLS`, ``IGNORABLE_404_STARTS``, and
|
||||
``IGNORABLE_404_ENDS`` are all now empty.
|
||||
|
||||
If you have customized :setting:`IGNORABLE_404_STARTS` or
|
||||
:setting:`IGNORABLE_404_ENDS`, or if you want to keep the old default value,
|
||||
you should add the following lines in your settings file::
|
||||
If you have customized ``IGNORABLE_404_STARTS`` or ``IGNORABLE_404_ENDS``, or
|
||||
if you want to keep the old default value, you should add the following lines
|
||||
in your settings file::
|
||||
|
||||
import re
|
||||
IGNORABLE_404_URLS = (
|
||||
|
|
|
|||
|
|
@ -881,11 +881,12 @@ For more details, see the documentation about
|
|||
|
||||
Until Django 1.3, it was possible to exclude some URLs from Django's
|
||||
:doc:`404 error reporting</howto/error-reporting>` by adding prefixes to
|
||||
:setting:`IGNORABLE_404_STARTS` and suffixes to :setting:`IGNORABLE_404_ENDS`.
|
||||
``IGNORABLE_404_STARTS`` and suffixes to ``IGNORABLE_404_ENDS``.
|
||||
|
||||
In Django 1.4, these two settings are superseded by
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular expressions.
|
||||
Django won't send an email for 404 errors on URLs that match any of them.
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular
|
||||
expressions. Django won't send an email for 404 errors on URLs that match any
|
||||
of them.
|
||||
|
||||
Furthermore, the previous settings had some rather arbitrary default values::
|
||||
|
||||
|
|
@ -895,12 +896,12 @@ Furthermore, the previous settings had some rather arbitrary default values::
|
|||
|
||||
It's not Django's role to decide if your website has a legacy ``/cgi-bin/``
|
||||
section or a ``favicon.ico``. As a consequence, the default values of
|
||||
:setting:`IGNORABLE_404_URLS`, :setting:`IGNORABLE_404_STARTS` and
|
||||
:setting:`IGNORABLE_404_ENDS` are all now empty.
|
||||
:setting:`IGNORABLE_404_URLS`, ``IGNORABLE_404_STARTS``, and
|
||||
``IGNORABLE_404_ENDS`` are all now empty.
|
||||
|
||||
If you have customized :setting:`IGNORABLE_404_STARTS` or
|
||||
:setting:`IGNORABLE_404_ENDS`, or if you want to keep the old default value,
|
||||
you should add the following lines in your settings file::
|
||||
If you have customized ``IGNORABLE_404_STARTS`` or ``IGNORABLE_404_ENDS``, or
|
||||
if you want to keep the old default value, you should add the following lines
|
||||
in your settings file::
|
||||
|
||||
import re
|
||||
IGNORABLE_404_URLS = (
|
||||
|
|
|
|||
|
|
@ -966,11 +966,12 @@ For more details, see the documentation about
|
|||
|
||||
Until Django 1.3, it was possible to exclude some URLs from Django's
|
||||
:doc:`404 error reporting</howto/error-reporting>` by adding prefixes to
|
||||
:setting:`IGNORABLE_404_STARTS` and suffixes to :setting:`IGNORABLE_404_ENDS`.
|
||||
``IGNORABLE_404_STARTS`` and suffixes to ``IGNORABLE_404_ENDS``.
|
||||
|
||||
In Django 1.4, these two settings are superseded by
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular expressions.
|
||||
Django won't send an email for 404 errors on URLs that match any of them.
|
||||
:setting:`IGNORABLE_404_URLS`, which is a list of compiled regular
|
||||
expressions. Django won't send an email for 404 errors on URLs that match any
|
||||
of them.
|
||||
|
||||
Furthermore, the previous settings had some rather arbitrary default values::
|
||||
|
||||
|
|
@ -980,12 +981,12 @@ Furthermore, the previous settings had some rather arbitrary default values::
|
|||
|
||||
It's not Django's role to decide if your website has a legacy ``/cgi-bin/``
|
||||
section or a ``favicon.ico``. As a consequence, the default values of
|
||||
:setting:`IGNORABLE_404_URLS`, :setting:`IGNORABLE_404_STARTS` and
|
||||
:setting:`IGNORABLE_404_ENDS` are all now empty.
|
||||
:setting:`IGNORABLE_404_URLS`, ``IGNORABLE_404_STARTS``, and
|
||||
``IGNORABLE_404_ENDS`` are all now empty.
|
||||
|
||||
If you have customized :setting:`IGNORABLE_404_STARTS` or
|
||||
:setting:`IGNORABLE_404_ENDS`, or if you want to keep the old default value,
|
||||
you should add the following lines in your settings file::
|
||||
If you have customized ``IGNORABLE_404_STARTS`` or ``IGNORABLE_404_ENDS``, or
|
||||
if you want to keep the old default value, you should add the following lines
|
||||
in your settings file::
|
||||
|
||||
import re
|
||||
IGNORABLE_404_URLS = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue