hello. Does django template engine supports nested dictionary? i'm trying to display a nested array with no luck.
that's my tries: ------------------- python manage.py shell ------------------- from django.template import Template, Context list_parts = { 'root': {'value': [{'tag': 'a'},{'tag':'b'}]}, 'wheel': {'value': [{'tag': 'c'}, ]} } t = Template(""" {% for part in list_parts %} <fieldset> <legend>{{part}}</legend> <ul> {% for subpart in part %} <li>{{ subpart }}</li> {% endfor %} </ul> </fieldset> {% endfor %} """) c=Context({'list_parts':list_parts}) print t.render(c) -------------------------------------------------------------- i tried every possible combination of {% for subpart in part %} {% for subpart in part.part %} {% for subpart in list_parts.part %} but i'm not able to show the information. where i am wrong? /me hopeless. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---