Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run with the lates allauth lib #670

Open
Mixser opened this issue Nov 12, 2023 · 2 comments
Open

Failed to run with the lates allauth lib #670

Mixser opened this issue Nov 12, 2023 · 2 comments

Comments

@Mixser
Copy link

Mixser commented Nov 12, 2023

The allauth.utils module no longer contains the email_address_exists function (see commit: pennersr/django-allauth@9fccdd0). Consequently, this leads to that we are unable to run with the latest version of the Allauth library due to the absence of the email_address_exists function in the allauth.utils module.


ImportError: allauth needs to be added to INSTALLED_APPS.

at this line

from allauth.utils import (email_address_exists,

@lingster
Copy link

lingster commented Mar 14, 2024

my understanding is that this package is no longer maintained. You should be able to replace this with dj-rest-auth :

https://github.com/iMerica/dj-rest-auth

@pranav-sharma-au5
Copy link

pranav-sharma-au5 commented Apr 24, 2024

This is a workaround

from allauth.account.models import EmailAddress

def email_exists(email):
    return EmailAddress.objects.filter(email=email).exists()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants