use a variable in django html for loop code example Example: for loop in django {% for i in range %} ... {% endfor %}