我关注此网站:
http://mbrochh.tumblr.com/post/6937702727/importing-google-app-engine-datastore-into-your-local
告诉我通过以下方式下载我的数据存储数据:
appcfg.py download_data --application=s~appname --url=http://appname.appspot.com/_ah/remote_api/ --filename=data.csv
已成功执行。现在我想通过以下方式将其上传到我的本地数据存储区:
appcfg.py upload_data --filename=data.csv --url=http://localhost:8080/_ah/remote_api/ your_app_folder
我得到了:
google.appengine.api.datastore_errors.BadRequestError: app "dev~oyoroiapp" cannot access app "oyoroiapp"'s data
Appengine在最近的api更新中删除了--default_parition
参数。我能做什么?
答案 0 :(得分:2)
cd
到包含本地data.csv
文件的文件夹中,然后:
appcfg.py upload_data --url=http://localhost:8080/_ah/remote_api/ --application=dev~appname --filename=data.csv --num_threads=5
我认为你错过了application=dev~appname
标志,也许是在错误的目录中。