使用django无法使用twitter登录

我正在使用django-social-auth应用程序(https://github.com/omab/django-social-auth)进行社交认证。

我向应用程序提供了consumer_key和consumer_secret。

当我编写登录到Twitter的链接时
http://127.0.0.1:8000/accounts/login/twitter,页面加载,就好像有一个请求被发送,几秒钟,然后页面停止加载,没有任何重定向或任何其他反应


您需要在您的Twitter应用程序设置中指定回拨URL以指向本地主机。

转到您的Twitter应用设置:

https://dev.twitter.com/apps

选择你的应用程序,然后点击设置标签。 在回拨网址字段中输入:

http://127.0.0.1:8000

一旦您在网络上部署您的应用程序,您需要返回到此屏幕并更新回拨URL以指向您的应用程序的域名。

链接地址: http://www.djcxy.com/p/63277.html

上一篇: can't login with twitter using django

下一篇: Auth and My Auth