无法使用django-social-auth使用twitter登录

amr*_*egm 1 django-socialauth twitter-oauth

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

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

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

小智 5

您需要在Twitter应用程序设置中指定回调URL以指向localhost.

转到您的Twitter应用设置:

https://dev.twitter.com/apps

选择您的应用,然后单击"设置"选项卡.在"回拨URL"字段中键入:

http://127.0.0.1:8000

在网络上部署应用后,您需要返回此屏幕并更新回拨网址以指向应用的域.