django call method in template loop over code example Example: for loop in django {% for i in range %} ... {% endfor %}