[英]Appengine downloading remote server data to local datastore fail?
I am following this site: 我正在关注这个网站:
http://mbrochh.tumblr.com/post/6937702727/importing-google-app-engine-datastore-into-your-local http://mbrochh.tumblr.com/post/6937702727/importing-google-app-engine-datastore-into-your-local
which tells me to download my datastore data by: 告诉我通过以下方式下载数据存储区数据:
appcfg.py download_data --application=s~appname --url=http://appname.appspot.com/_ah/remote_api/ --filename=data.csv
which has been successfully executed. 已成功执行。 Now I want to upload it to my local datastore via: 现在,我想通过以下方式将其上传到本地数据存储区:
appcfg.py upload_data --filename=data.csv --url=http://localhost:8080/_ah/remote_api/ your_app_folder
and I am getting: 我得到:
google.appengine.api.datastore_errors.BadRequestError: app "dev~oyoroiapp" cannot access app "oyoroiapp"'s data
Appengine has removed the --default_parition
parameter in recent api updates. --default_parition
在最近的api更新中已删除--default_parition
参数。 What can I do? 我能做什么?
cd
into the folder containing the local data.csv
file, then: cd
进入包含本地data.csv
文件的文件夹,然后:
appcfg.py upload_data --url=http://localhost:8080/_ah/remote_api/ --application=dev~appname --filename=data.csv --num_threads=5
I think you are missing the application=dev~appname
flag, and perhaps in the wrong directory. 我认为您缺少application=dev~appname
标志,并且可能在错误的目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.