Django Heroku webapp完成PythonOAuth导致500

2024-10-03 23:18:21 发布

您现在位置:Python中文网/ 问答频道 /正文

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

默认的url是https://kloudtransfer.herokuapp.com/,当我尝试完成身份验证时,我被引导到kloudtranfer.herokauapp.com/complete/google-加/。在

我应该被带到kloudtransfer.herokauapp.com/members,如我的站点.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

Tags: https服务器com身份验证urlheroku错误google
1条回答
网友
1楼 · 发布于 2024-10-03 23:18:21

解决了!在

我首先设置了错误处理,然后在回溯中花了很多时间给我的电子邮件,然后发现这是一个数据库错误:操作错误:没有这样的表:social_auth_usersocialauth。所以,我查看了我的prod服务器,发现我从来没有设置过数据库。我用heroku postgres建立了一个外部数据库,并进行了迁移等。现在一切就绪!耶

相关问题 更多 >