In Django, I have a dictionary, which contains dictionary, example:
d['dict1'] = [('1', 'some information'), ('2', 'some information')] d['dict2'] = [('1', 'some more information'), ('2', 'some more information')] and I need to loop through it, but each time it loops through it only grab the value of dict1 and dict2 corresponding with the loop.counter, so example
first time through it would output 1 3 and then 2 4 and so on and so forth I tried doing:
{% for item1, item2 in d.items %} {{ item1.forloop.counter.value1 }} {{ item2.forloop.counter.value1 }} {% endfor %} and it produces nothing.
Edit: I updated what the dict actually looks like