appcfg.py shows You must be logged in as an administrator

后端 未结 5 1733
情歌与酒
情歌与酒 2021-01-18 00:55

When I try to upload a sample csv data to my GAE app through appcfg.py, it shows the below 401 error.

2015-11-04 10:44:41,820 INFO client.py:571         


        
5条回答
  •  没有蜡笔的小新
    2021-01-18 01:14

    You cannot use the appcfg.py upload_data command with the development server [edit: as is; see Josh J's answer]. It only works with the remote_api endpoint running on App Engine and authenticated with OAuth2.

    An easy way to load data into the dev server's datastore is to create an endpoint that reads a CSV file and creates the appropriate datastore entities, then hit it with the browser. (Be sure to remove the endpoint before deploying the app, or restrict access to the URL with login: admin.)

提交回复
热议问题