django-social-auth django-registration 和 django-profiles -- 一起
有没有人使用过django-social-auth,django-registration 和 django-profiles 在一起。他们合作得好吗?我已经建立了social-auth,但我在某处读到 django-allauth 更好。我应该切换到那个吗?
请告知
更新:
我在我的项目中使用了allauth
并且它工作正常。您不需要将 django-registration 与 allauth 一起使用,因为它已集成在其中。不过,我使用的是自定义用户配置文件,这是比 django-profiles 更好的选择。
Has anyone used django-social-auth, django-registration and django-profiles together. Do they work well together? I have established social-auth but I read somewhere that django-allauth is better. Should I switch over to that?
Please advise
Update:
I have used allauth
in my project and it is working fine. You don't need to use django-registration
with allauth because that is integrated within. However I am using custom user profiles and that is a better option than the django-profiles
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们一起工作得很好 - 我前几天刚刚设置了它(除了我不需要使用 django-profiles,因为创建你自己的配置文件很容易)。
一些要点和限制:
django-social-auth 是一个很棒的项目,正在与
convore 小组积极开发Google 网上论坛始终是最新的,所以我当然会推荐它。它的设置也非常容易 - 只需确保您已经解决了登录流程,并且您知道使用此功能的潜在限制编辑:
这篇文章有点过时的
auth
模块中,以便您现在可以编辑要为用户使用的字段(仅电子邮件,无用户名等)。如果您想向用户添加类似个人资料的信息而无需加入另一个表(就像您使用 django-profiles 或OneToOne
关系那样),这也很有用自定义配置文件模型)They work fine together - I just set this up the other day (except I didn't need to use django-profiles as it's as easy to create your own).
Some points and limitations:
django-social-auth is a great project and is being actively developed with a
group on convoreGoogle Group that is always up to date so I would certainly suggest it. It's also very easy to set up - just be sure you have ironed out your login flow, and you know of the potential limitations of using thisEDIT:
This post is a little outdated
auth
module so you can now edit what fields you want to make use of for your user (email only, no username etc.). This is also useful if you want to add profile-like information to your user without having to join with another table (like you would with django-profiles or aOneToOne
relationship with a custom profile model)