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

后端 未结 9 1898
[愿得一人]
[愿得一人] 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:52

    Another solution is to stub out the auth function with lambda: http://www.carlosble.com/?p=603

    0 讨论(0)
  • 2021-02-10 06:57

    You need create an admin credential in your local development server first.

    With your firefox (or chrome safari etc), open http://localhost:8178/remote_api, you will be asked to login (without password), enter an email as your login, and tick the login as administrater box, login. This will create you a local admin credential for you, use this when bulkloading locally.

    It applies to other admin required local access.

    Leaving (or commenting) out login:admin is a bad practice, since you might deploy that into production, too. Take care!

    0 讨论(0)
  • 2021-02-10 06:58

    I recommend you follow the advice given here, and I quote:

    add this to app.yaml file:

    -- url: /loadusers
     script: myloader.py
     login: admin
    

    Note that if you run it on local development machine, comment off the last line login:admin so that you don't need a credential to run the bulkloader.

    (my emphasis).

    0 讨论(0)
提交回复
热议问题