使用Django登录Twitter的最佳方式

时间:2011-01-01 04:56:35

标签: python django twitter

我使用这三种方式在django上登录twitter,但现在不成功:

  1. Django的SocialAuth
  2. 的django-twitterauth
  3. http://hameedullah.com/step-by-step-guide-to-use-sign-in-with-twitter-with-django.html
  4. 我已经厌倦了,有没有其他方法可以使用Django登录Twitter。

3 个答案:

答案 0 :(得分:2)

我最近一直在用这个项目。非常好。

https://github.com/ryanmcgrath/twython-django

答案 1 :(得分:2)

我最近使用Django Social Registration并且非常喜欢它。它还处理其他oauth,oauth2和openid服务。

答案 2 :(得分:0)

我认为您的问题是“使用Twitter登录Django的最佳方式”,而不是相反?更广泛一点,您的问题基本上是“使用(插入 - 收藏 - 社交网络)登录Django的最佳方式”,其中一个版本在此讨论:

A simple and up-to-date way to implement Facebook login in a Django app

顺便说一下,allauth为您存储访问令牌。点击这里如何发布推文:

How to status update on twitter in django with Oauth