There is a forloop in java where i can tell where to start and where to end:
for(int i=10;i<array.length;i++){
}
but how can i implement this int i=10
in django template? How can i set the starting and ending point on my own?
there is a forloop.first
and forloop.last
, but they are defined inside the loop and i cannot do something like this?:
{{forloop.first=10}}
{% for athlete in athlete_list %}
<li>{{ athlete.name }}</li>
{% endfor %}
{{forloop.last=20}}
I read the django doc but this feature seems to be not there