Download data from Appengine

I am trying to follow this explanation: https://developers.google.com/appengine/docs/python/tools/uploadingdata#Downloading_and_Uploading_All_Data

but when I add to my app.yaml:

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

and trying to update my application, I get:

Parsing yaml file error: invalid object: threadsafe cannot be enabled with CGI handler: $ PYTHON_LIB / Google / AppEngine / internal / remote_api / handler.py

Error.

What am I doing wrong?

Thanks!

By the way, this is my app.yaml:

 application: XXXX-my-application-name version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /static static_dir: static - url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin - url: /favicon.ico static_files: static/favicon.ico upload: static/favicon.ico - url: /.* script: main.app # a WSGI application in the main module global scope libraries: - name: django version: "1.3" 
+6
source share
2 answers

Try something like

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

What will the WSGI application use instead of the CGI method of the main () method.

+13
source

Unless you are doing something VERY special, you should not change the remote URL.

just type the following into app.yaml:

 builtins: - remote_api: on 
+5
source

Source: https://habr.com/ru/post/917701/


All Articles