Django Allauth Ignoring Adapter

Viewed 115

Allauth signin keeps showing, despite adding adapter. Following allauth documentation on Overriding the allauth signin, I created an adapter.py in my app (accounts) with:

from allauth.account.adapter import DefaultAccountAdapter

class NoNewUsersAccountAdapter(DefaultAccountAdapter):
    def is_open_for_signup(self, request):
       return False 

I added to my settings file:

ACCOUNT_ADAPTER = 'accounts.adapter.NoNewUsersAccountAdapter'
0 Answers
Related