Created
April 20, 2010 17:40
-
-
Save jemerick/372797 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load custom template tags in all templates | |
# Custom template tags that you use all over your templates can be auto loaded. Just add the following in a module that is # loaded (i.e. your urlconf if you want the template tags to be loaded for the whole project) | |
from django import template | |
template.add_to_builtins('project.app.templatetags.custom_tag_module') | |
# relative paths | |
import os.path | |
TEMPLATE_DIRS = ( | |
os.path.join(os.path.dirname(__file__), "templates"), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment