I have a pretty simple question, but I cannot find a simple solution. I would like to iterate over the array in my Django template, but skip the first value.
Let's say I have such an array that I pass my template through a view:
array = ['1', '2', '3', '4', '5']
In my template, I:
{% for a in array%} {{a}} {% endfor%}
How can I do to print only "2" "3" "4" 5, without the first value?
source
share