social-auth-app-django集成第三方登录
2017-10-19 15:04
483 查看
GitHub:https://github.com/python-social-auth/social-app-django
官网文档:http://python-social-auth.readthedocs.io/en/latest/
安装
生成数据库表
settings配置
D:\Python36\Lib\site-packages\social_core\backends\ 此目录下包含现在主流网站的第三方登陆,例如微博、微信等
urls配置
官网文档:http://python-social-auth.readthedocs.io/en/latest/
安装
pip install social-auth-app-django
生成数据库表
./manage.py migrate
settings配置
D:\Python36\Lib\site-packages\social_core\backends\ 此目录下包含现在主流网站的第三方登陆,例如微博、微信等
AUTHENTICATION_BACKENDS = ( 'social_core.backends.weibo.WeiboOAuth2', 'social_core.backends.qq.QQOAuth2', 'social_core.backends.weixin.WeixinOAuth2', 'users.views.CustomBackend', 'django.contrib.auth.backends.ModelBackend', )
TEMPLATES = [ { ... 'OPTIONS': { ... 'context_processors': [ ... 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', ... ] } } ]
urls配置
url('', include('social_django.urls', namespace='social'))
相关文章推荐
- 第四百零四节,python网站第三方登录,social-auth-app-django模块,
- 第三方登录facebook登录简单集成iOS APP超详细教程
- 直播APP开发,扩展类库用户、会话和第三方登录集成
- 用django-social-auth 做中国社交网站三方登录(qq,微博,豆瓣,百度,人人,微信支持)
- 在为应用集成微博第三方登录获取用户信息的时候出现异常com.weibo.sdk.android.WeiboException: {"error":"User does not exists!","er
- IOS项目集成ShareSDK实现第三方登录、分享、关注等功能
- IOS项目集成ShareSDK实现第三方登录、分享、关注等功能。
- Laravel 5.1 集成 Auth 验证用户注册登录示例
- 第三方登录app与pc打通问题
- 支付宝第三方登录集成文档
- 基于友盟使用Swift3.0在Xcode8.0beta版中集成分享功能和第三方登录
- android app使用第三方微信登录
- ShareSDK集成第三方登录和分享的步骤
- Android使用ShareSDK集成QQ、微信、微博等第三方登录
- APP带第三方微博、微信、QQ等登录注册的登录注册流程分解
- 友盟集成第三方登录--微信、QQ实现
- ShareSDK集成第三方登录和分享的步骤
- IOS项目集成ShareSDK实现第三方登录、分享、关注等功能。
- 如何在APP中集成Google账户登录
- Android的集成新浪微博第三方登录