编程语言
首页 > 编程语言> > python-从数据存储区下载数据

python-从数据存储区下载数据

作者:互联网

我想将数据下载到在线应用程序的数据存储中,我遵循the guide on code.google,将其添加到我的app.yaml文件中

builtins:
- remote_api: on

但是当我使用appcfg.py更新时更新了src并称为:

appcfg.py download_data --application=myapp --url=http://myapp.appspot.com/remote_api_path --filename=first-test-backup`

我收到了一个身份验证错误,几乎与案例mentioned here相同,因此我尝试将其放入:

- url: /remote_api 
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py 
  login: admin 

在所有通用处理程序之前,但随后出现此错误:当我尝试更新时,无法使用CGI处理程序启用线程安全,因此根据this discussion,我将其替换为:

    - url: /remote_api 
  script: google.appengine.ext.remote_api.handler.application 
  login: admin 

这又给了我身份验证错误,我也尝试将(‘/ remote_api’,google.appengine.ext.remote_api.handler)添加到app = webapp2.WSGIApplication,但是身份验证错误仍然存​​在.

我使用了高复制数据存储,但是根据code.google,唯一的缺点是我可能无法获取最新数据.

如何下载我的数据?

解决方法:

尝试这个:

builtins:
- remote_api: on

和网址

appcfg.py download_data --application=~myapp --url=http://myapp.appspot.com/_ah/remote_api --filename=first-test-backup

网址中的注意_ah:http://myapp.appspot.com/_ah/remote_api

标签:database-backups,python-2-7,google-app-engine,google-cloud-datastore,python
来源: https://codeday.me/bug/20191101/1986835.html