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
19242c67
Kaydet (Commit)
19242c67
authored
Eki 30, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #23735 -- Clarified that admindocs must be enabled to view template tag libraries in admin.
Thanks Aymeric Augustin for the report.
üst
e7cb4f2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
templates.txt
docs/topics/templates.txt
+6
-3
No files found.
docs/topics/templates.txt
Dosyayı görüntüle @
19242c67
...
@@ -662,15 +662,18 @@ Custom tag and filter libraries
...
@@ -662,15 +662,18 @@ Custom tag and filter libraries
===============================
===============================
Certain applications provide custom tag and filter libraries. To access them in
Certain applications provide custom tag and filter libraries. To access them in
a template, use the :ttag:`load` tag::
a template, ensure the application is in :setting:`INSTALLED_APPS` (we'd add
``'django.contrib.humanize'`` for this example), and then use the :ttag:`load`
tag in a template::
{% load humanize %}
{% load humanize %}
{{ 45000|intcomma }}
{{ 45000|intcomma }}
In the above, the :ttag:`load` tag loads the ``humanize`` tag library, which then
In the above, the :ttag:`load` tag loads the ``humanize`` tag library, which then
makes the ``intcomma`` filter available for use. Consult the documentation
makes the ``intcomma`` filter available for use. If you've enabled
area in your admin to find the list of custom libraries in your installation.
:mod:`django.contrib.admindocs`, you can consult the documentation area in your
admin to find the list of custom libraries in your installation.
The :ttag:`load` tag can take multiple library names, separated by spaces.
The :ttag:`load` tag can take multiple library names, separated by spaces.
Example::
Example::
...
...
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