Django

Code

Changeset 1450

Show
Ignore:
Timestamp:
11/27/05 01:28:51 (3 years ago)
Author:
adrian
Message:

Fixed ReST error in docs/templates_python.txt. Thanks, EABinGA

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates_python.txt

    r1443 r1450  
    412412 
    413413First, create a ``templatetags`` package in the appropriate Django app's 
    414 package. It should be on the same level as ``models``, ``views``, etc. For 
     414package. It should be on the same level as ``models``, ``views.py``, etc. For 
    415415example:: 
    416416 
     
    418418        models/ 
    419419        templatetags/ 
    420         views/ 
    421420 
    422421Add two files to the ``templatetags`` package: an ``__init__.py`` file and a 
     
    651650 
    652651As with filter registration, it is also possible to use this as a decorator, in 
    653 Python 2.4 and above: 
     652Python 2.4 and above:: 
    654653 
    655654    @register.tag(name="current_time")