小编gab*_*wad的帖子

配置了多个身份验证后端,因此必须提供`backend`参数或在用户上设置`backend`属性

首先我是django/python的新手.

我正在尝试创建一个登录网站,允许用户注册帐户并通过电子邮件验证或直接通过fb或谷歌登录(Oauth)

当我点击发送到电子邮件的验证网址时,我收到错误.

错误:

ValueError at /activate/Mjk/4p1-dcc5f7ed2e7c847fe362/

You have multiple authentication backends configured and therefore must 

provide the `backend` argument or set the `backend` attribute on the user.

Request Method: GET

Request URL:    http://127.0.0.1:8000/activate/Mjk/4p1-dcc5f7ed2e7c847fe362/
Django Version: 1.11.3

Exception Type: ValueError

Exception Value:    

You have multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py in login, line 149
Python Executable:  /usr/bin/python
Python Version: 2.7.12
Python Path:    
['/home/gaby/django projects/simple-signup-master/profile-model', …
Run Code Online (Sandbox Code Playgroud)

python django ubuntu oauth

18
推荐指数
2
解决办法
6759
查看次数

标签 统计

django ×1

oauth ×1

python ×1

ubuntu ×1