From: Lachlan Musicman <data...@gmail.com>
Date: Wed, 14 Nov 2012 18:31:14 +1200
Local: Wed, Nov 14 2012 1:31 am
Subject: Re: Whats the point of having dicts in templates if one cannot access them by key?
I used the SortedDict datastructure :)
https://docs.djangoproject.com/en/dev/ref/utils
On Wed, Nov 14, 2012 at 4:40 PM, Juan Pablo Tamayo <jtama...@gmail.com> wrote:
> Let me explain, I have a nested dictionary like:
-- > agenda = {'3': {'2012-11-11': <MyObject>, '2012-11-14': <MyObject>, ...},
> And I want to access it by specifying the two keys. I've red that i must
> {% for k, a_dict in agenda.items %}
> But, whats the point of using dicts if I have to access the values in
> What if I need to access these values in a specified order? (for the outer
> Is there a way to access a two-dimensional container IN AN PRE-SPECIFIED
> Thaks for any advise.
> pablete
> --
...we look at the present day through a rear-view mirror. This is something Marshall McLuhan said back in the Sixties, when the world was in the grip of authentic-seeming future narratives. He said, “We look at the present through a rear-view mirror. We march backwards into the future.” You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||