Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over dictionary django

{% for key, value in data.items %}
    <tr>
        <td> Key: {{ key }} </td> 
        <td> Value: {{ value }} </td>
    </tr>
{% endfor %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #dictionary #django
ADD COMMENT
Topic
Name
5+3 =