I'm trying to obtain the equivalent in Django's template language. Is this possible? I want to print the final number , not the count each iteration.
int num=0;
for (int i = 0; i < numitems; i++)
{
num += 1;
}
I've tried:
{% for task in tasks %}
{{ forloop.counter0 }}
{counter}
{% endfor %}