Re: how to access a tuple in a template

2007-12-20 Thread Julian
thanks, great! --~--~-~--~~~---~--~~ 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] F

Re: how to access a tuple in a template

2007-12-20 Thread Alex Koshelev
{{tuple.0}} {{tuple.1}} On 21 дек, 01:30, Julian <[EMAIL PROTECTED]> wrote: > hi, > > i am passing a tuple (1,2) to a template in a variable like this: > > render_to_response("template.html",{"tuple":(1,2)}) > > how can i access the single-values without a for-loop in the template? --~--~

how to access a tuple in a template

2007-12-20 Thread Julian
hi, i am passing a tuple (1,2) to a template in a variable like this: render_to_response("template.html",{"tuple":(1,2)}) how can i access the single-values without a for-loop in the template? --~--~-~--~~~---~--~~ You received this message because you are subscr