I am using Django template, and I met one problem with nested dictionary.
Dict:
result_dict = {'type_0' : {'file_name' : 'abc', 'count' : 0},
'type_1' : {'file_name' : 'xyz', 'count' : 50}}
and the template in my HTML file is:
{% for type in result_dict %}
{{ type }}, {{ type.file_name }}
{% endfor %}
How can I show the value of type_0 and type_1 only ?
I've tried:
{% for key, value in result_dict %}
{{ key }}, {{ value }}
{% endfor %}
but it doesn't work.
Thank you for your help.