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
Post a Comment