On 5/2/06, tomass <[EMAIL PROTECTED]> wrote: > I think I'm supposed to create a directory called templatetags in the > directory that holds my models.py, then drop an __init__.py file into > there and the file I want to import (in my case automator.py). > > However, I get this error message: > > 'opscenter' is not a valid tag library: Could not load template library > from django.templatetags.automator, No module named automator > > How do I tell it to look in this directory for my automator.py instead > of django.templatetags.automator?
Hi Tom, You've put the tags in the right place, and Django's looking in the correct place, but I suspect there's some sort of syntax or import error in your template library. Try running "python automator.py" to see if it spits out any errors. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---