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. Template range filter by zalun 5 years, 1 month ago
  2. Updated - Template context debugger with (I)Pdb by dnordberg 4 years, 8 months ago
  3. Deli.cio.us rss template tag by aaloy 5 years ago
  4. google.html template for GoogleAdmin by jbronn 5 years, 6 months ago
  5. google.js template for GoogleAdmin by jbronn 5 years, 6 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?)