Django Facebook Connect应用推荐 [英] Django Facebook Connect App Recommendation

查看:89
本文介绍了Django Facebook Connect应用推荐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



到目前为止,我发现 Django-Socialauth django-socialregistration django-facebookconnect 为此目的



问题是可以选择哪一个,我想听到有其他开发者有任何这些应用程序的经验。



对我来说重要的是,Facebook Connect登录应用程序使用@login_required,默认的auth系统以及django注册功能。



请分享您的经验:)

解决方案

更新(11/26/2013)我更新我的建议。自从写了这个答案以来已经有足够的时间了,我建议您使用 python-社会认证 django-allauth 作为工作的最佳工具。他们是活跃的项目,具有良好的文档和支持,不仅仅是Facebook。我已经成功地使用了这两个。






我最喜欢适应 django-socialregistration django-registration (0.8)。由于您正在使用django注册,所以您将不得不做一些工作,因为这三个软件包都承担了用户的创建和身份验证。



我只是要解释需要做什么,但是你启发我终于得到我的版本: 你好社会注册



像我所指出的那样,它分离给予注册功能到django注册后端,并处理所有的授权本身。我一直在使用我的近beta版应用程序一段时间没有任何问题(我也交给一个朋友使用几个月前,他让它工作没有太多的修改)。



这是绝对不会成为即插即用的可重用应用程序,但希望能为您提供一些洞察力。 :)


I want to implement Facebook connect login for my Django site and I've checked the already existing apps.

So far, I have found Django-Socialauth, django-socialregistration, and django-facebookconnect for this purpose.

The question is which one to choose, and I would like to hear from other developers who have experience with any of these apps.

It is important for me that the Facebook Connect login app plays nicely with @login_required, with the default auth system, and with django-registration.

Please share your experience :)

解决方案

Update (11/26/2013): I'm updating my recommendation. Since a sufficient amount of time has passed since I wrote this answer, I would recommend python-social-auth or django-allauth as the best tools for the job. They are active projects with good documentation and support for a lot more than just Facebook. I've had success using both.


I have had the most luck with adapting django-socialregistration with django-registration (0.8). Since you're working with django-registration, you're going to have to do a little bit of work, since all three of those packages assume the role of both the creation and the authentication of the user.

I was just going to explain what needed to be done, but you inspired me to finally get my version out: hello-social-registration.

Like I alluded to, it separates gives the registration functions to a django-registration backend and handles all the authorization itself. I've been using this on my near-beta application for a while now with no problems (I also handed it to a friend to use a few months ago and he got it to work without much modification).

It's definitely not ready to be a plug-and-play reusable application, yet, but hopefully it'll provide you with some insight. :)

这篇关于Django Facebook Connect应用推荐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆