Monday, December 24, 2012

access key and element in dictionary in Django Template


{% for key, value in dictionary.items %}
    <p>{{ key }} - {{ value }}</p>
{% endfor %}

No comments:

Post a Comment