All, I have a code generating program that using django's nifty template packages.
It all worked well until I wanted to use a custom filter. No matter what I try, I get: django.template.TemplateSyntaxError: 'javadoc_filter' is not a valid tag library: Could not load template library from django.templatetags.javadoc_filter, No module named javadoc_filter Note that the error refers to: django.templatetags.javadoc_filter whereas I just want it to import "javadoc_filter" from my current dir. I'm sure this is by design in django but there must be a way around it. sys.path IS updated. I've tried all sorts of things. I had a settings file including tinkering with INSTALLED_APPS. No luck. I've tried adding a directory templatetags to contain my filter package. No luck. I've tried using the configure syntax without the module file, like this: import django.conf django.conf.settings.configure( TEMPLATE_DIRS =(this_dir), INSTALLED_APPS = ('javadoc_filter', 'templatetags.javadoc_filter', 'templatetags'), # trying all combinations! ) Still no luck. This is the filter code: > > ==javadoc_filter.py== > > from django.template import Library > > register = Library() > > @register.filter > def javadoc_filter(value, arg): > print "Just testing: [%s:%s]" % (value,arg) The template has this at the start: > {% load javadoc_filter %} everything else in the template is great, just not the import. I'm sure its simple. Ideas? Thanks A --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---