Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.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 Allauth忽略适配器_Python_Django_Django Templates_Django Allauth - Fatal编程技术网

Python Django Allauth忽略适配器

Python Django Allauth忽略适配器,python,django,django-templates,django-allauth,Python,Django,Django Templates,Django Allauth,Allauth signin继续显示,尽管添加了适配器。根据关于覆盖allauth登录的allauth文档,我在我的应用程序(accounts)中创建了一个adapter.py,其中包含: 我已将以下内容添加到我的设置文件: ACCOUNT_ADAPTER = 'accounts.adapter.NoNewUsersAccountAdapter' ACCOUNT_ADAPTER = 'accounts.adapter.NoNewUsersAccountAdapter'

Allauth signin继续显示,尽管添加了适配器。根据关于覆盖allauth登录的allauth文档,我在我的应用程序(accounts)中创建了一个adapter.py,其中包含:

我已将以下内容添加到我的设置文件:

ACCOUNT_ADAPTER = 'accounts.adapter.NoNewUsersAccountAdapter'
ACCOUNT_ADAPTER = 'accounts.adapter.NoNewUsersAccountAdapter'