On 9/29/06, DOUTCH GARETH-GDO003 <[EMAIL PROTECTED]> wrote:
>
> However, I get the error message:
> "x is not a valid tag library: Could not load template library from
> django.templatetags.x"

Django will automatically discover any templatetags that you have
defined, as long as they are contained within a 'templatetags'
directory in your model directory: e.g.,

myproject/
    myapp/
        __init__.py
        models.py
        templatetags/
            __init__.py
            mytemplatetags1.py
            mytemplatetags2.py

Where mytemplatetags[1,2].py are the 'tag libraries' - collections of
template tags that are to be imported. If your template then contains:

{% load mytemplatetags1 %}

any template tag registered in the 'mytemplatetags1' tag library will
be visible to the template.

Hope this helps,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to