0
選擇_Key_我有這個模型在谷歌的AppEngine
from google.appengine.ext import db
class Question(db.Model):
Qtitle = db.StringProperty()
Q= FirstModel(Qtitle="Who is the most handsome actor?")
Q.put()
然後我運行此GQL查詢:
query = db.GqlQuery("SELECT __key__ FROM FirstModel Qtitle='Who is the most handsome actor?' ")
results = query.fetch(10)
for result in results:
print result
,但得到的錯誤!
「有錯誤」 - 什麼錯誤?告訴我們你的堆棧跟蹤,不要讓我們猜測。 –