diff options
| author | Tim Graham <timograham@gmail.com> | 2013-05-23 08:52:55 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-05-23 08:54:24 -0400 |
| commit | 9ed2121eca0d4543dd665d7c5a3015beaee28eb4 (patch) | |
| tree | ac3d09db4bcd17477bbc63521cabeab735d65bcf /docs | |
| parent | 7df9c2bc7d6226b9f9ca7dd3da3f34c4b0482b06 (diff) | |
[1.5.x] Fixed #20417 - Noted that a server restart is required to load new templatetag modules.
Thanks Katya for the suggestion.
Backport of a46a399534 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-template-tags.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index 91541c7cce..30bb6b120e 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -20,7 +20,8 @@ create a new app to hold them. 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 - don't forget the ``__init__.py`` file to ensure the directory is treated as a -Python package. +Python package. After adding this 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`` directory. The name of the module file is the name you'll use to load the tags |
