You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing OTPAdapter it throws following exception.
./manage.py shell
Python 3.11.5 (main, Nov 21 2024, 22:26:00) [Clang 16.0.0 (clang-1600.0.26.4)] on darwin
>>> from allauth_2fa.adapter import OTPAdapter
/Users/user/project/.venv/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Traceback (most recent call last):
File "<console>", line 1, in<module>
File "/Users/user/project/.venv/lib/python3.11/site-packages/allauth_2fa/adapter.py", line 7, in<module>
from allauth.socialaccount.models import SocialLogin
File "/Users/user/project/.venv/lib/python3.11/site-packages/allauth/socialaccount/models.py", line 26, in<module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: allauth.socialaccount not installed, yet its models are imported.
But socialauth should be optional unless it is really required.
The text was updated successfully, but these errors were encountered:
Installed apps have following apps installed:
When importing
OTPAdapter
it throws following exception.But
socialauth
should be optional unless it is really required.The text was updated successfully, but these errors were encountered: