__key__ problem.

14 views
Skip to first unread message

Deepcover

unread,
Aug 19, 2009, 11:47:17 AM8/19/09
to Google App Engine
Another newbie question I am afraid, I am trying to use the ID/Name
field in my application, but having some problems.

I have the following query:

locations = db.GqlQuery("SELECT * FROM Location ORDER BY __key__
DESC LIMIT 10")

template_values = {
'greetings': locations,
}

And I am trying to use that field in my application like this:

{{ greeting.__key__ }}
{{ greeting.xpos }} etc....

Everything is working, except for when I try to include the __key__
field, what am I doing wrong?

vp

unread,
Aug 19, 2009, 3:13:47 PM8/19/09
to Google App Engine
Reply all
Reply to author
Forward
0 new messages