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:
- Only kind
Entryis generated,there is no kindTagin the generatedbulkloader.yaml. - In kind
Entry, propertytagsis 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.
加载中,请稍侯......
精彩评论