mydict = {\"key1\":\"value1\", \"key2\":\"value2\"}
The regular way to lookup a dictionary value in a Django template is {{ mydict.key1 }}
{{ mydict.key1 }}
Fetch both the key and the value from the dictionary in the loop:
{% for key, value in mydict.items %} {{ value }} {% endfor %}
I find this easier to read and it avoids the need for special coding. I usually need the key and the value inside the loop anyway.