How can I check if there is something in the dictionary in django template
This:
{% if dict|length > 0 %}
do this
{% endif %}
should do the job just fine too.
{% if not dict.vars %}
do this
{% endif %}
This:
{% if dict|length > 0 %}
do this
{% endif %}
should do the job just fine too.
{% if not dict.vars %}
do this
{% endif %}