Changeset 1450
- Timestamp:
- 11/27/05 01:28:51 (3 years ago)
- Files:
-
- django/trunk/docs/templates_python.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates_python.txt
r1443 r1450 412 412 413 413 First, create a ``templatetags`` package in the appropriate Django app's 414 package. It should be on the same level as ``models``, ``views ``, etc. For414 package. It should be on the same level as ``models``, ``views.py``, etc. For 415 415 example:: 416 416 … … 418 418 models/ 419 419 templatetags/ 420 views/421 420 422 421 Add two files to the ``templatetags`` package: an ``__init__.py`` file and a … … 651 650 652 651 As with filter registration, it is also possible to use this as a decorator, in 653 Python 2.4 and above: 652 Python 2.4 and above:: 654 653 655 654 @register.tag(name="current_time")
