On Wed, 2009-03-18 at 17:05 -0400, Alex Gaynor wrote: > > > On Wed, Mar 18, 2009 at 4:49 PM, Jason Wang <randomt...@gmail.com> > wrote: > > Hi all, > > I have a problem where i have a list which stores a bunch of > relevant > key to another dictionary. I want to loop through the list and > print > out the information contained in the keys to output. > > Apparently it doesn't work. [...]
> > Write a template filter that does the lookup against the variable. To provide some more context to what Alex wrote... this is an intentional feature of the template system. It wasn't written for Python programmers, but for designers, so is kept as simple as possible. The general motto is "no programming in templates". Here are a couple of longer explanations about the rationale from the archives of this list: http://groups.google.com/group/django-users/browse_thread/thread/c7e3496fae2e1a31/d2e46c4ceac5e88f#d2e46c4ceac5e88f http://groups.google.com/group/django-users/browse_thread/thread/aee730e9b285773f/993532cb8bfb4dd3#993532cb8bfb4dd3 Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---