{% extends 'base.html' %} {% block main %} {%- set id = namespace(value=0) %} {%- for question in content %} {%- set id.value = id.value + 1 %}