I'm trying to read a dictionary in a template in Django, but I would like to separate the keys and the values. The key is what will be showed, and the value is the next url it has to go (I know that the dictionary is a little bit strange but I think that's not a problem).
Here is my code if anyone can help me?
<ul>
{% for i in respuestas %}
<li><a href="/{{'respuestas.[i]'}}"><h2>{{i}}</h2></a></li>
{% endfor %}
</ul>
That's the idea. Obviously it doesn't work because I'm asking here so, anyone know how can I do it??
Thank you!