1
 

More like this

  1. by mikko 6 years ago
  2. by mikko 5 years, 9 months ago
  3. by mikko 5 years, 8 months ago
  4. by mikko 5 years, 8 months ago
  5. by mikko 5 years, 7 months ago

Comments

fax8 (on August 22, 2008):

In order to use this you should create two files: an empty one called __init__.py and one containing the above code called path_match.py

Then put them into a folder called "templatetags" inserted at the application root (same level as views.py ).

Then before using the {% path_match %} tag you should load the tag definition by inserting {% load path_match %} in the template file in which you will use the path_match tag.

For more informations see http://www.djangobook.com/en/1.0/chapter10/#cn92

#

(Forgotten your password?)