forloop.counter like so:

{% for item in items %}
    {{ forloop.counter }}
{% endfor %}


Regards,
-Alen Ribic


On May 6, 8:39 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote:
> I know this sounds silly, but I am just not able to figure out a way to
> generate a custom serial number for
> generating reports.
>
> Is there a way to create a counter using for loops of django templates. Wr
> ite now I am using a  crude java script to do the same.
>
> RS
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to