站点图标 久久日记本

gae上传切换账号问题

GAE切换新账号换appid,结果上传就一直提示appid不存在...

用另个账号新建了google app应用,上传图床程序,而程序自带bat上传,打开,谁知道提示我不存在这个appid,也没让我输入新账号用户名之类的,猜想一定是cookie记录了用户名密码,直接就在我原来的账号中查找这个appid。搞了半天也没找到原因。

看到google的这篇“appcfg.py”用法,

appcfg.py update myapp/

appcfg.py gets the application ID from the app.yaml file, and prompts you for the email address and password of your Google account. After successfully signing in with your account, appcfg.py stores a "cookie" so that it does not need to prompt for a password on subsequent attempts.

You can specify the email address on the command line using the --email option. You cannot specify the password as a command line option.

appcfg.py --email=Albert.Johnson@example.com update myapp/

尝试着加上新账号的email解决,还是报错。

偶然间在某个博客上看到解决方式:传送门

情報を記憶せずにコマンドを発行するときは

appcfg.py update --no_cookie hogehoge

import 済みモジュールの確認
import 済みモジュールの確認

居然可以了,诶,折腾了一上午。

退出移动版