Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
641acf76
Kaydet (Commit)
641acf76
authored
Ara 24, 2012
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed IGNORABLE_404_STARTS/ENDS settings.
üst
4a6490a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
38 deletions
+0
-38
common.py
django/middleware/common.py
+0
-14
error-reporting.txt
docs/howto/error-reporting.txt
+0
-8
settings.txt
docs/ref/settings.txt
+0
-16
No files found.
django/middleware/common.py
Dosyayı görüntüle @
641acf76
...
@@ -143,20 +143,6 @@ def _is_ignorable_404(uri):
...
@@ -143,20 +143,6 @@ def _is_ignorable_404(uri):
"""
"""
Returns True if a 404 at the given URL *shouldn't* notify the site managers.
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
)
return
any
(
pattern
.
search
(
uri
)
for
pattern
in
settings
.
IGNORABLE_404_URLS
)
def
_is_internal_request
(
domain
,
referer
):
def
_is_internal_request
(
domain
,
referer
):
...
...
docs/howto/error-reporting.txt
Dosyayı görüntüle @
641acf76
...
@@ -101,14 +101,6 @@ The best way to disable this behavior is to set
...
@@ -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
records are ignored, but you can use them for error reporting by writing a
handler and :doc:`configuring logging </topics/logging>` appropriately.
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:
Filtering error reports
Filtering error reports
...
...
docs/ref/settings.txt
Dosyayı görüntüle @
641acf76
...
@@ -2244,22 +2244,6 @@ Default: Not defined
...
@@ -2244,22 +2244,6 @@ Default: Not defined
The site-specific user profile model used by this site. See
The site-specific user profile model used by this site. See
:ref:`User profiles <auth-profiles>`.
: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
.. setting:: URL_VALIDATOR_USER_AGENT
URL_VALIDATOR_USER_AGENT
URL_VALIDATOR_USER_AGENT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment