How to set parent for datastrore entity during bulkloading data by appcfg.py on Google App Engine?
问题 I'm trying to bulkload data using appcfg.py as described here. I got it working except setting parent entity, I can't seem to find info on how to set a parent entity for entity being created by the import. Can you point me to the right direction or provide a code snippet for my bulkloader.Loader implementation? 回答1: You need to override the generate_key method of your Loader class. See this post for details. 来源: https://stackoverflow.com/questions/2356158/how-to-set-parent-for-datastrore