filter django for looop by time code example
Example 1: django template for range
{% with ''|center:n as range %}
{% for _ in range %}
{{ forloop.counter }}
{% endfor %}
{% endwith %}
Example 2: for loop in django
{% for i in range %}
...
{% endfor %}