Probably an easy question -

Trying to loop over the items returned by include_feed in
template_utils.feeds.py

A manual call to:

{{items.0}} returns: {'date': (2007, 12, 25, 11, 54, 46, 1, 359, 0),
'summary': u'dkiesow: Merry Christmas', 'link': u'http://twitter.com/
dkiesow/statuses/531962742', 'title': u'dkiesow: Merry Christmas'}

{{items.0.title}} returns:  dkiesow: Merry Christmas

Easy enough - but I can not figure out how to structure the {% for %}
to loop over the items and return them.

{% for title in items %}
{{ title}}
{{ date }}
{% endfor %}

returns all the items in the feed looking like: {'date': (2007, 12,
25, 11, 54, 46, 1, 359, 0), 'summary': u'dkiesow: Merry Christmas',
'link': u'http://twitter.com/dkiesow/statuses/531962742', 'title':
u'dkiesow: Merry Christmas'}

Do this need a custom tag? I assumed it worked directly much as the
parse_feed function did - which I have working correctly.

Thanks

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

Reply via email to