Yep, reading the documentation helps ;).
But here's how your code should look:
{% for art in my_art_list %}
{% cycle '' '' '' %}
{% cylce '' '' '' %}
{% empty %}
You
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
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
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 %}
I am very new to Django and Python. I have been working on a pet
project that has a table of rows. My thought was to have a counter in
the template, and use modulus to write out the row start/stops out.
The code looks like this:
{% if my_art_list %}
{% count = 0 %}
{% for art i
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 %}
>
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 count%3 = 0 %}
{% endif %}
7 matches
Mail list logo