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
ee442e97
Kaydet (Commit)
ee442e97
authored
Eyl 21, 2014
tarafından
Ola Sitarska
Kaydeden (comit)
Baptiste Mispelon
Eyl 21, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #23529 -- Replaced comments tag library with humanize in docs
üst
aeb48b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
templates.txt
docs/topics/templates.txt
+8
-8
No files found.
docs/topics/templates.txt
Dosyayı görüntüle @
ee442e97
...
...
@@ -664,18 +664,18 @@ Custom tag and filter libraries
Certain applications provide custom tag and filter libraries. To access them in
a template, use the :ttag:`load` tag::
{% load
comments
%}
{% load
humanize
%}
{
% comment_form for blogs.entries entry.id with is_public yes %
}
{
{ 45000|intcomma }
}
In the above, the :ttag:`load` tag loads the ``
comments
`` tag library, which then
makes the ``
comment_form`` tag
available for use. Consult the documentation
In the above, the :ttag:`load` tag loads the ``
humanize
`` tag library, which then
makes the ``
intcomma`` filter
available for use. 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.
Example::
{% load
comments
i18n %}
{% load
humanize
i18n %}
See :doc:`/howto/custom-template-tags` for information on writing your own custom
template libraries.
...
...
@@ -687,9 +687,9 @@ When you load a custom tag or filter library, the tags/filters are only made
available to the current template -- not any parent or child templates along
the template-inheritance path.
For example, if a template ``foo.html`` has ``{% load
comments
%}``, a child
For example, if a template ``foo.html`` has ``{% load
humanize
%}``, a child
template (e.g., one that has ``{% extends "foo.html" %}``) will *not* have
access to the
comments
template tags and filters. The child template is
responsible for its own ``{% load
comments
%}``.
access to the
humanize
template tags and filters. The child template is
responsible for its own ``{% load
humanize
%}``.
This is a feature for the sake of maintainability and sanity.
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