> {% for data in mydict.items %} > key: {{ data.0 }} > value: {{ data.1 }} > {% endfor %}
Thanks for you answer ... but I still have a problem : how to do a real dictionnary lookup. Here is an example of what I'm trying to do : parent = {4 : 'parent1', 5 : 'parent2' } childs = { 4 : ['child1', child2], 5 : ['child3', 'child4'] } {% for data in parent.items %} key: {{ data.0 }} value: {{ data.1 }} <!-- how can I get the child corresponding : childs[key] ? --> {% endfor %} Regards, Z. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---