I have this code in my view, for example: a=['a','b','c'] # a list of row labels b=[1,2,3] # a list of col label c=tab # an array (list of list) with len(a) rows and len(b) cols. return render_to_response('template.html',{'a':a,'b':b,'c':c})
then on the template side, it's easy to print c {% for row in c %} <tr> {% for col in row %} <td>{{ col }}</td> {% endfor %} </tr> {% endfor %} but in each cell, I want to add my col and rows label separate with comma with the c value ? how to index a and b below for having corresponding row and col labels ? <td>{{ col }},{{ a }},{{ b }}</td> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---