loop through keys in dict django template code example
Example: iterate over dictionary django
{% for key, value in data.items %}
<tr>
<td> Key: {{ key }} </td>
<td> Value: {{ value }} </td>
</tr>
{% endfor %}
{% for key, value in data.items %}
<tr>
<td> Key: {{ key }} </td>
<td> Value: {{ value }} </td>
</tr>
{% endfor %}