开发者

GAE bulkloader : entity missing from the auto-generated bulkloader.yaml

I am migrating a django application to GAE,and am going to use bulkloader to upload existing data.

The model is quite simple, basically there are two models:

class Tag(db.Model):
      name = db.StringProperty (required=True)

class Entry(db.Model):开发者_开发问答
      # some properties ...
      # ...
      tags = db.ListProperty(db.Key)

I ran appcfg.py create_bulkloader_config against my GAE app,and found two problems with the bulkloader.yaml generated:

  1. Only kind Entry is generated,there is no kind Tag in the generated bulkloader.yaml.
  2. In kind Entry, property tags is missing.

Also I noticed although I have code which inquiries model Tag like this:

Tag.gql('WHERE name = :1',t)

GAE doesn't generate index for Tag in index.yaml. I am wondering is this related to that Tag is missing from bulkloader.yaml ...

Any hints folks ? Thank you in advance.


Try running that GQL in the data store viewer in your control panel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜