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
6dea1b18
Kaydet (Commit)
6dea1b18
authored
Ara 07, 2017
tarafından
M Somerville
Kaydeden (comit)
Tim Graham
Ara 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[2.0.x] Fixed #28891 -- Documented Origin's loader attribute.
Backport of
16bd4964
from master
üst
66ccb3ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
api.txt
docs/ref/templates/api.txt
+12
-1
No files found.
docs/ref/templates/api.txt
Dosyayı görüntüle @
6dea1b18
...
...
@@ -1051,7 +1051,7 @@ Template origin
Templates have an ``origin`` containing attributes depending on the source
they are loaded from.
.. class:: Origin
.. class:: Origin
(name, template_name=None, loader=None)
.. attribute:: name
...
...
@@ -1069,3 +1069,14 @@ they are loaded from.
If the template is instantiated directly rather than through a
template loader, this is ``None``.
.. attribute:: loader
The template loader instance that constructed this ``Origin``.
If the template is instantiated directly rather than through a
template loader, this is ``None``.
:class:`django.template.loaders.cached.Loader` requires all of its
wrapped loaders to set this attribute, typically by instantiating
the ``Origin`` with ``loader=self``.
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