in View.py ``` list_2 = [ {'header_c': c_foo1, 'header_d': d_foo1}, {'header_c': c_foo2, 'header_d': d_foo2}, ] ``` in web.html ``` {% for item in list %} {% if forloop.first %} {% for h in item %} {% endfor %} {% endif%} {% endfor %} {% for item in list %} {% for key,value in item.items %} {% endfor %} {% endfor %}
{{ h }} |
---|
{{ value}} |