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
af95eee9
Kaydet (Commit)
af95eee9
authored
Eyl 22, 2015
tarafından
Henry Jordan
Kaydeden (comit)
Tim Graham
Eyl 22, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25447 -- Emphasized the need to restart dev server when adding template tags.
üst
cb1e779c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
custom-template-tags.txt
docs/howto/custom-template-tags.txt
+6
-2
No files found.
docs/howto/custom-template-tags.txt
Dosyayı görüntüle @
af95eee9
...
@@ -22,8 +22,12 @@ described below are automatically made available to load within templates.
...
@@ -22,8 +22,12 @@ described below are automatically made available to load within templates.
The app should contain a ``templatetags`` directory, at the same level as
The app should contain a ``templatetags`` directory, at the same level as
``models.py``, ``views.py``, etc. If this doesn't already exist, create it -
``models.py``, ``views.py``, etc. If this doesn't already exist, create it -
don't forget the ``__init__.py`` file to ensure the directory is treated as a
don't forget the ``__init__.py`` file to ensure the directory is treated as a
Python package. After adding this module, you will need to restart your server
Python package.
before you can use the tags or filters in templates.
.. admonition:: Development server won't automatically restart
After adding the ``templatetags`` module, you will need to restart your
server before you can use the tags or filters in templates.
Your custom tags and filters will live in a module inside the ``templatetags``
Your custom tags and filters will live in a module inside the ``templatetags``
directory. The name of the module file is the name you'll use to load the tags
directory. The name of the module file is the name you'll use to load the tags
...
...
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