On 23-03-12 20:56, gowtham wrote:

But, in template, rather than iterating over the dictionary (using for
and items)  i would like to access them using keys.

You can, can't you?  {{ my_dict.some_key }}.

You're using numerical keys, which might not work as well.
But you can try something like {{ my_dict.42 }}.


Reinout

--
Reinout van Rees                    http://reinout.vanrees.org/
rein...@vanrees.org             http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to