[Answered ]-How to get the json key and value in Django's Templating language?

1👍

You can access the items with the .items() method [python-doc]:

{% for key, value in show.episodes.items %}
    Season {{key}}: {{ value }}
{% endfor %}

0👍

You can use {{key.0}}{{key.1}}
But for this you have to use list of tupples which is I think is a better option to use in django … Instead of dictionary

Leave a comment