1
0
mirror of https://github.com/django/django.git synced 2025-08-23 10:19:13 +00:00

[1.8.x] Fixed #25447 -- Emphasized the need to restart dev server when adding template tags.

Backport of af95eee9fb70dae5b3b2ce8bc73c13fc1de239ff from master
This commit is contained in:
Henry Jordan 2015-09-22 12:03:58 -07:00 committed by Tim Graham
parent 55f80d28d4
commit 5add28dad0

View File

@ -20,8 +20,12 @@ create a new app to hold them.
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