How can I add dictionary to a template nicely with Django - Just want all the information in a nice table.
I have the following dict:
{'Information': {0: 'size', 1: 'energy [kWh]', 2: 'ratio [PR]'}, 'Value': {0: 570.66, 1: 984092.66, 2: 81.7}}
Tried to use {% for v in values[0] %} - Could not parse the remainder: '[0]' from 'values[0]'
HTML Part
<div>
<table>
<tr>
<th>Information</th>
<th>Value</th>
</tr>
<tr>
{% for key, values in dict_data.items %}
{% for v in values %}
<td>{{v}}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
Thank you!
