django for loop with condition code example Example: for loop in django {% for i in range %} ... {% endfor %}