I am having a list in the name 'bestforproglist'. Also I had a for loop like this
{% for act in activities %} <div style="float:left;">{{ act.spotcategoryactivity }}</div> <div class="progit"> <div class="prog_c" > <div id="prog_p" style="width:20%;"></div> </div> <span id="p_caps">{{ ____________ }}%</span><br/> </div> {% endfor %} in the above code, in the space of underline, how should i have have first item in the list when the loop is in first iteration, the second item in the list when the loop is in second iteration and so on...
I tried
<span id="p_caps">{{ mylist[ {{forloop.counter}} ] }}</span><br/> But it's not working.