无法让筛选器在Google App Engine中的数据存储查询中生效 (Python)

2024-06-26 00:10:23 发布

您现在位置:Python中文网/ 问答频道 /正文

不知道出了什么问题。我试图在数据存储中查询一个简单的字符串,但是查询结果总是空的。在

在模型.py公司名称:

from google.appengine.ext import db
from google.appengine.api import datastore_types

class Post(db.Model):
    author = db.TextProperty()
    title = db.TextProperty()
    slug = db.TextProperty()
    #slug = str()

在主.py公司名称:

^{pr2}$

数据存储查看器中的输出清楚地显示了它就在那里:

2   1   None    Tom Tomton  road-to-the-perfect-car-wax     Road to the perfect car wax.
2   2   None    John Jonston    10-ways-to-get-a-perfect-car-wax    10 ways to get a perfect car wax.

我试过使用appengine版本1.5.5和1.5.0。在


Tags: to数据frompyimport名称dbgoogle