Answers for "how to iterate 100 times in django"

2

django template for range

{% with ''|center:n as range %}
{% for _ in range %}
    {{ forloop.counter }}
{% endfor %}
{% endwith %}
Posted by: Guest on October-16-2020
2

how to count range in django template

{% for item in "x"|ljust:"100" %}
    {{item}} {# or do anything 100 times #}
{% endfor %}
Posted by: Guest on December-18-2020

Code answers related to "how to iterate 100 times in django"

Python Answers by Framework

Browse Popular Code Answers by Language