Django + GAE + Google Cloud SQL在Windows中的身份验证问题



我遵循了配置Django与GAE + Google Cloud SQL(在Windows 7上)所需的所有步骤,但我无法验证(OAuth2)并远程运行syncdb。当我运行manage.py syncdb浏览器弹出,我被要求允许访问,但当我这样做什么都没有发生。浏览器被正确地转发到我的本地django安装(典型的It worked!屏幕),但没有OAuth2令牌在%USERPROFILE%中,控制台被冻结:

C:Usersmemyproject>python manage.py syncdb
Your browser has been opened to visit:
    https://accounts.google.com/o/oauth2/auth?state=None&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&response_type=code&client_id=my_id.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice&access_type=offline
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
  --noauth_local_webserver

没有错误信息,我必须关闭控制台。

有人遇到过类似的问题吗?在GAE的某个地方有日志我可以查看吗?

我也有同样的问题,只是在OS x上。

我一直不知道为什么,但重启后它就消失了。

我有同样的问题,但这是因为我有本地应用引擎服务器运行,而我正在运行manage.py syncdb。关闭后再试一次。

最新更新