Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django Socail Auth和我的Auth_Python_Django_Django Socialauth_Socialauth - Fatal编程技术网

Python Django Socail Auth和我的Auth

Python Django Socail Auth和我的Auth,python,django,django-socialauth,socialauth,Python,Django,Django Socialauth,Socialauth,我试图安装django social auth, 位于 我如何将常规注册与社会认证相关联 例如,用户在twitter或facebook等网站上没有任何帐户。。 如何将django.contrib.auth与social auth关联 django social auth通过让他选择注册普通注册或在twitter或facebook上使用他的帐户,提供了通过特定后端(如Google、facebook或twitter)进行身份验证的视图。看看social\u auth的URLconf中定义的代码: 安

我试图安装django social auth, 位于 我如何将常规注册与社会认证相关联 例如,用户在twitter或facebook等网站上没有任何帐户。。 如何将django.contrib.auth与social auth关联


django social auth通过让他选择注册普通注册或在twitter或facebook上使用他的帐户,提供了通过特定后端(如Google、facebook或twitter)进行身份验证的视图。看看
social\u auth
的URLconf中定义的代码:

安装了
social\u auth
后,如果您想使用Twitter登录,您可以访问
begin
url,指定相应的后端(例如/login/Twitter/)。
social\u auth
应用程序会将用户重定向到Twitter,此时他们会授权你的应用程序,然后你会被重定向回
complete
url(例如/complete/Twitter)

如果您想将Twitter帐户与现有用户关联(即,通过
admin
应用程序创建的用户,或类似
django注册
),您可以访问
associate\u begin
url(例如“/associate/Twitter/”)

这一切都假设您的根URLconf包含如下条目:

url(r'', include('social_auth.urls')),