i have send a variable from my views to templates which consist of the data from database
this is what i am using in my template
{% for i in data %}
{{ data|length }}
this works perfect we not need to use this in loop just use any where in the template even we dont need to send another variable from views