Django views not able to show the dictionary object data

Solution 1:

In the template you have to use the dot-notation to access dictionary keys:

{% for mm in query_data %}
  <span>{{ mm.month | date: 'F' }}</span>
{% endfor %}

Solution 2:

Just use mm.month

{% for mm in query_data %}
  <span>{{ mm.month | date: 'F' }}</span>
{% endfor %}

Also there must be space before and after % in your templates. There is no space in your endfor