On Jun 17, 4:11 pm, Derek wrote:
> Running Django 1.2.1 with Python 2.6
>
> I am trying to create a simple test tag (the more complex ones are not
> working either...).
>
> In the templatetags directory, I have this code in the my_tags.py file:
>
> from django import template
> register = template
Running Django 1.2.1 with Python 2.6
I am trying to create a simple test tag (the more complex ones are not
working either...).
In the templatetags directory, I have this code in the my_tags.py file:
from django import template
register = template.Library()
@register.tag
def foo(eggs=None, spam
2 matches
Mail list logo