完成PythonOAuth的Django Heroku webapp导致500错误

时间:2015-01-07 00:23:43

标签: python heroku oauth google-plus social

我在heroku上运行了一个webapp,当我尝试使用 Python Social OAuth 通过google +登录时,我收到服务器错误(500)。

默认网址为https://kloudtransfer.herokuapp.com/,当我尝试完成身份验证时,我会转到 kloudtransfer.herokuapp.com/complete/google-plus /

我应该被引导到 kloudtransfer.herokuapp.com/members ,就像我的site.py中所列。 我的回购信息在这里:https://github.com/lilshim/kloudtransfer

以下是500错误的heroku日志:

2015-01-08T00:27:00.254253+00:00 heroku[router]: at=info method=POST path="/complete/google-plus/" host=kloudtransfer.herokuapp.com request_id=fdda7448-4fca-4987-8d5f-acddbd993b70 fwd="76.219.245.151" dyno=web.1 connect=1ms service=473ms status=500 bytes=253

1 个答案:

答案 0 :(得分:0)

解决了!

我首先设置了错误处理,然后在发送到我的电子邮件的跟踪上花了很多时间,然后发现它是一个数据库错误:OperationalError:没有这样的表:social_auth_usersocialauth。所以,我查看了我的prod服务器,看到我从未设置过我的数据库。我使用heroku postgres设置了一个外部数据库,并进行了迁移等等,现在它已经完成了!耶

相关问题