Ticket #2096: templates_python.txt.diff

File templates_python.txt.diff, 705 bytes (added by Ramiro Morales, 18 years ago)
  • templates_python.txt

    old new  
    502502filters, you might want to write your own. It's easy to do.
    503503
    504504First, create a ``templatetags`` package in the appropriate Django app's
    505 package. It should be on the same level as ``models``, ``views.py``, etc. For
     505package. It should be on the same level as ``models.py``, ``views.py``, etc. For
    506506example::
    507507
    508508    polls/
    509         models/
     509        models.py
    510510        templatetags/
     511        views.py
    511512
    512513Add two files to the ``templatetags`` package: an ``__init__.py`` file and a
    513514file that will contain your custom tag/filter definitions. The name of the
Back to Top