Which credentials should I put in for Google App Engine BulkLoader at development server?

后端 未结 9 1899
[愿得一人]
[愿得一人] 2021-02-10 06:28

I would like to ask which kind of credentials do I need to put on for importing data using the Google App Engine BulkLoader class

appcfg.py upload_data --config_         


        
9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 06:41

    Yes, comment out the admin requirement for the remote_api:

    [app.yaml]

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

    Then run this command:

    $ bulkloader.py --dump --kind=DbMyKind --url=http://localhost:8080/remote_api --filename=export.csv --app_id=my_appid --auth_domain=localhost:8080
    

    Note: verify that --auth_domain is passed, and proper port is passed for localhost.

提交回复
热议问题