Re: access dict attribute with space in the key

2009-04-08 Thread Malcolm Tredinnick
On Wed, 2009-04-08 at 04:50 -0700, rslee wrote: > I have dict named "servers". With in it, there is a key called "num > of cpu". In Python, I can access this as servers["num of cpu"]. In > Django, how can I access this dict item. I tried the following but > they do not work: {{servers.num of c

access dict attribute with space in the key

2009-04-08 Thread rslee
I have dict named "servers". With in it, there is a key called "num of cpu". In Python, I can access this as servers["num of cpu"]. In Django, how can I access this dict item. I tried the following but they do not work: {{servers.num of cpu}}, {{"servers.num of cpu}}, {{servers."num of cpu"}}