Re: Newb needs help with tracking variables in Templates

2009-01-06 Thread junker37
Yep, reading the documentation helps ;). But here's how your code should look: {% for art in my_art_list %} {% cycle '' '' '' %} {% cylce '' '' '' %} {% empty %} You

Re: Newb needs help with tracking variables in Templates

2009-01-06 Thread bruno desthuilliers
On 6 jan, 02:00, "django_fo...@codechimp.net" wrote: (snip) > First, let me take some Motrin for my very sore rear end. I have been > reading documentation. In fact, I started with the tutorials on the > site that walks you through writing the polling application, then > moved on to some doc

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread Daniel Roseman
On Jan 5, 5:39 pm, "django_fo...@codechimp.net" wrote: > I have a pretty simple template that needs to print some data in a > bunch of table rows.  I have done something like this: > > > {% if my_art_list %} >         {% count = 0 %} >         {% for art in my_art_list %} >                 {% if

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread django_fo...@codechimp.net
On Jan 5, 5:56 pm, bruno desthuilliers wrote: > On 5 jan, 23:39, "django_fo...@codechimp.net" > wrote: > > > I have a pretty simple template that needs to print some data in a > > bunch of table rows.  I have done something like this: > > > > > {% if my_art_list %} > >         {% count = 0 %}

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread bruno desthuilliers
On 5 jan, 23:39, "django_fo...@codechimp.net" wrote: > I have a pretty simple template that needs to print some data in a > bunch of table rows. I have done something like this: > > > {% if my_art_list %} > {% count = 0 %} This just won't work > {% for art in my_art_list %} >