django forloop.en contre-opération

Je voudrais savoir comment reproduire cela dans django:

for photo in gallery
    if counter is 1 
        then use this photo
     endif
endfor

comment puis-je vérifier le forloop contre si c'est "1"?

OriginalL'auteur Fel | 2011-03-11