шаблон Django для диапазона
{% with ''|center:n as range %}
{% for _ in range %}
{{ forloop.counter }}
{% endfor %}
{% endwith %}
Cautious Caiman
{% with ''|center:n as range %}
{% for _ in range %}
{{ forloop.counter }}
{% endfor %}
{% endwith %}
{% for item in "x"|ljust:"100" %}
{{item}} {# or do anything 100 times #}
{% endfor %}