Answers for "use loops in html 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
1

for loop in django

{% for i in range %}
     ...
{% endfor %}
Posted by: Guest on September-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language