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
ef021412
Kaydet (Commit)
ef021412
authored
Eyl 09, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Normalized spelling of ETag.
üst
ca9c69a9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
8 deletions
+7
-8
global_settings.py
django/conf/global_settings.py
+1
-1
http.py
django/views/decorators/http.py
+1
-1
middleware.txt
docs/ref/middleware.txt
+1
-1
settings.txt
docs/ref/settings.txt
+1
-1
spelling_wordlist
docs/spelling_wordlist
+0
-1
conditional-view-processing.txt
docs/topics/conditional-view-processing.txt
+1
-1
tests.py
tests/admin_views/tests.py
+1
-1
tests.py
tests/cache/tests.py
+1
-1
No files found.
django/conf/global_settings.py
Dosyayı görüntüle @
ef021412
...
@@ -22,7 +22,7 @@ DEBUG = False
...
@@ -22,7 +22,7 @@ DEBUG = False
# on a live site.
# on a live site.
DEBUG_PROPAGATE_EXCEPTIONS
=
False
DEBUG_PROPAGATE_EXCEPTIONS
=
False
# Whether to use the "E
t
ag" header. This saves bandwidth but slows down performance.
# Whether to use the "E
T
ag" header. This saves bandwidth but slows down performance.
USE_ETAGS
=
False
USE_ETAGS
=
False
# People who get code error notifications.
# People who get code error notifications.
...
...
django/views/decorators/http.py
Dosyayı görüntüle @
ef021412
...
@@ -58,7 +58,7 @@ def condition(etag_func=None, last_modified_func=None):
...
@@ -58,7 +58,7 @@ def condition(etag_func=None, last_modified_func=None):
The parameters are callables to compute the ETag and last modified time for
The parameters are callables to compute the ETag and last modified time for
the requested resource, respectively. The callables are passed the same
the requested resource, respectively. The callables are passed the same
parameters as the view itself. The E
t
ag function should return a string (or
parameters as the view itself. The E
T
ag function should return a string (or
None if the resource doesn't exist), while the last_modified function
None if the resource doesn't exist), while the last_modified function
should return a datetime object (or None if the resource doesn't exist).
should return a datetime object (or None if the resource doesn't exist).
...
...
docs/ref/middleware.txt
Dosyayı görüntüle @
ef021412
...
@@ -472,7 +472,7 @@ Here are some hints about the ordering of various Django middleware classes:
...
@@ -472,7 +472,7 @@ Here are some hints about the ordering of various Django middleware classes:
#. :class:`~django.middleware.http.ConditionalGetMiddleware`
#. :class:`~django.middleware.http.ConditionalGetMiddleware`
Before ``CommonMiddleware``: uses its ``E
t
ag`` header when
Before ``CommonMiddleware``: uses its ``E
T
ag`` header when
:setting:`USE_ETAGS` = ``True``.
:setting:`USE_ETAGS` = ``True``.
#. :class:`~django.contrib.sessions.middleware.SessionMiddleware`
#. :class:`~django.contrib.sessions.middleware.SessionMiddleware`
...
...
docs/ref/settings.txt
Dosyayı görüntüle @
ef021412
...
@@ -2527,7 +2527,7 @@ to ensure your processes are running in the correct environment.
...
@@ -2527,7 +2527,7 @@ to ensure your processes are running in the correct environment.
Default: ``False``
Default: ``False``
A boolean that specifies whether to output the
"Etag"
header. This saves
A boolean that specifies whether to output the
``ETag``
header. This saves
bandwidth but slows down performance. This is used by the ``CommonMiddleware``
bandwidth but slows down performance. This is used by the ``CommonMiddleware``
(see :doc:`/topics/http/middleware`) and in the``Cache Framework``
(see :doc:`/topics/http/middleware`) and in the``Cache Framework``
(see :doc:`/topics/cache`).
(see :doc:`/topics/cache`).
...
...
docs/spelling_wordlist
Dosyayı görüntüle @
ef021412
...
@@ -239,7 +239,6 @@ environ
...
@@ -239,7 +239,6 @@ environ
escapejs
escapejs
esque
esque
Ess
Ess
Etag
ETag
ETag
ETags
ETags
exe
exe
...
...
docs/topics/conditional-view-processing.txt
Dosyayı görüntüle @
ef021412
...
@@ -64,7 +64,7 @@ order, as the view function they are helping to wrap. The function passed
...
@@ -64,7 +64,7 @@ order, as the view function they are helping to wrap. The function passed
``last_modified_func`` should return a standard datetime value specifying the
``last_modified_func`` should return a standard datetime value specifying the
last time the resource was modified, or ``None`` if the resource doesn't
last time the resource was modified, or ``None`` if the resource doesn't
exist. The function passed to the ``etag`` decorator should return a string
exist. The function passed to the ``etag`` decorator should return a string
representing the `E
t
ag`_ for the resource, or ``None`` if it doesn't exist.
representing the `E
T
ag`_ for the resource, or ``None`` if it doesn't exist.
Using this feature usefully is probably best explained with an example.
Using this feature usefully is probably best explained with an example.
Suppose you have this pair of models, representing a simple blog system::
Suppose you have this pair of models, representing a simple blog system::
...
...
tests/admin_views/tests.py
Dosyayı görüntüle @
ef021412
...
@@ -6047,7 +6047,7 @@ class InlineAdminViewOnSiteTest(TestCase):
...
@@ -6047,7 +6047,7 @@ class InlineAdminViewOnSiteTest(TestCase):
@override_settings
(
ROOT_URLCONF
=
'admin_views.urls'
)
@override_settings
(
ROOT_URLCONF
=
'admin_views.urls'
)
class
TestE
t
agWithAdminView
(
SimpleTestCase
):
class
TestE
T
agWithAdminView
(
SimpleTestCase
):
# See https://code.djangoproject.com/ticket/16003
# See https://code.djangoproject.com/ticket/16003
def
test_admin
(
self
):
def
test_admin
(
self
):
...
...
tests/cache/tests.py
Dosyayı görüntüle @
ef021412
...
@@ -2163,7 +2163,7 @@ class TestWithTemplateResponse(SimpleTestCase):
...
@@ -2163,7 +2163,7 @@ class TestWithTemplateResponse(SimpleTestCase):
Tests various headers w/ TemplateResponse.
Tests various headers w/ TemplateResponse.
Most are probably redundant since they manipulate the same object
Most are probably redundant since they manipulate the same object
anyway but the E
t
ag header is 'special' because it relies on the
anyway but the E
T
ag header is 'special' because it relies on the
content being complete (which is not necessarily always the case
content being complete (which is not necessarily always the case
with a TemplateResponse)
with a TemplateResponse)
"""
"""
...
...
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