Re: "'str' object has no attribute 'source'" for a simple test tag

2010-06-17 Thread Daniel Roseman
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

"'str' object has no attribute 'source'" for a simple test tag

2010-06-17 Thread Derek
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,