python - Google app engine: Queries -



python - Google app engine: Queries -

i have table foo foos stored , if log in via browser , list foos there 1 foo id=12. have code:

logging.info(fid) q = db.gqlquery("select * foo id = :1", fid) logging.info(list(q))

which prints

12 []

if q.fetch(4) still gives me index out of range. doing wrong? help!

read doc. can't query raw id, need create key object.

python google-app-engine

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -