Hi, What you want is usually done using cycle: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle
On Mon, Sep 14, 2009 at 9:57 AM, luca72 <lucabe...@libero.it> wrote: > > hello i need to render a table where i need to separate a odd colum to > even column > > my wrong idea > <table cellspacing="1"> > <thead> > <tr> > <th> File Name</th> > <th> Size </th> > </tr> > </thead> > {% for m in tutti %} > {% if {{m.id}} even %} > <tr class="even"> > {% else %} > <tr class="odd"> > {% endif %} > <td>{{m.nome_fil}}</td> > <td>{{m.lungh}}</td> > </tr> > {% endfor %} > </table> > > can you help me to write it > > Thanks Luca > > > -- Tiago Serafim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---