Hello!

I want to define a new template tag and use it in a number of applications 
inside my django project. The documentation says:

*Custom template tags and filters must live inside a Django app. If they 
relate to an existing app it makes sense to bundle them there; otherwise, 
you should create a new app to hold them.

*But I could not find a word in documentation on how to {% load %} tags 
from another app. I added the new 'custom_tags' app it to INSTALLED_APPS, 
registered, imported the tag, restarted the server, etc., but I couldn't 
get past the error page: 

*'custom_tags' is not a valid tag library: Template library custom_tags not 
found, tried 
django.templatetags.custom_tags,django.contrib.staticfiles.templatetags.custom_tags,django.contrib.admin.templatetags.custom_tags
*

Could someone please explain where to put my custom tags so that I will be 
able to reuse them throughout the project?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to