Wednesday, August 31, 2011

how to render context like this :

c = Context( {'teams':
{1: ['a', 'b'] , 2:['c', 'd']}
} )

i have try like this :

{% for k in teams %}
<li> {{k}} {{k.0}} # also try teams[k] ... etc. but also
dosent work
{% endfor %}

sorry for my noob question , but pls show me how to to this .

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment