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
7c00f9fb
Unverified
Kaydet (Commit)
7c00f9fb
authored
Ock 11, 2018
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Ock 11, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #29002 -- Corrected cached template loader docs about when it's automatically enabled.
Thanks oTree-org for the suggestion.
üst
f636f0bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
api.txt
docs/ref/templates/api.txt
+4
-2
1.11.txt
docs/releases/1.11.txt
+3
-2
No files found.
docs/ref/templates/api.txt
Dosyayı görüntüle @
7c00f9fb
...
@@ -908,8 +908,10 @@ loaders that come with Django:
...
@@ -908,8 +908,10 @@ loaders that come with Django:
``Template`` in memory. The cached ``Template`` instance is returned for
``Template`` in memory. The cached ``Template`` instance is returned for
subsequent requests to load the same template.
subsequent requests to load the same template.
This loader is automatically enabled if :setting:`DEBUG` is ``False`` and
This loader is automatically enabled if :setting:`OPTIONS['loaders']
:setting:`OPTIONS['loaders'] <TEMPLATES-OPTIONS>` isn't specified.
<TEMPLATES-OPTIONS>` isn't specified and :setting:`OPTIONS['debug']
<TEMPLATES-OPTIONS>` is ``False`` (the latter option defaults to the value
of :setting:`DEBUG`).
You can also enable template caching with some custom template loaders
You can also enable template caching with some custom template loaders
using settings like this::
using settings like this::
...
...
docs/releases/1.11.txt
Dosyayı görüntüle @
7c00f9fb
...
@@ -698,8 +698,9 @@ Miscellaneous
...
@@ -698,8 +698,9 @@ Miscellaneous
1.0) is removed.
1.0) is removed.
* The :class:`cached template loader <django.template.loaders.cached.Loader>`
* The :class:`cached template loader <django.template.loaders.cached.Loader>`
is now enabled if :setting:`DEBUG` is ``False`` and
is now enabled if :setting:`OPTIONS['loaders'] <TEMPLATES-OPTIONS>` isn't
:setting:`OPTIONS['loaders'] <TEMPLATES-OPTIONS>` isn't specified. This could
specified and :setting:`OPTIONS['debug'] <TEMPLATES-OPTIONS>` is ``False``
(the latter option defaults to the value of :setting:`DEBUG`). This could
be backwards-incompatible if you have some :ref:`template tags that aren't
be backwards-incompatible if you have some :ref:`template tags that aren't
thread safe <template_tag_thread_safety>`.
thread safe <template_tag_thread_safety>`.
...
...
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