Making templatetags global to all templates

1
2
3
4
5
6
# <mysite>/globaltags/__init__.py

from django.template import add_to_builtins
add_to_builtins('globaltags.pyif')
add_to_builtins('globaltags.expr')
add_to_builtins('globaltags.dbinfo')

More like this

  1. Currency Widget by Rupe 2 years, 8 months ago
  2. Currency Field Admin Integration by Rupe 2 years, 8 months ago
  3. XFN Assist by Turophile 3 years, 1 month ago
  4. Currency Form Field by Rupe 2 years, 8 months ago
  5. Currency DB Field by Rupe 2 years, 8 months ago

Comments

gsf0 (on August 27, 2007):

Took me a second to realize I still had to add '<mysite>.globaltags' to INSTALLED_APPS, then it worked like a charm! Thanks.

#

(Forgotten your password?)