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

_app_settings = AppSettings("ACCOUNT_") #3628

Closed
kamalktwl opened this issue Feb 2, 2024 · 3 comments
Closed

_app_settings = AppSettings("ACCOUNT_") #3628

kamalktwl opened this issue Feb 2, 2024 · 3 comments

Comments

@kamalktwl
Copy link

When i install allauth

pip install django-allauth

but return error

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/kamal/SB_project/Pythons/venvlist/strip/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/kamal/SB_project/Pythons/venvlist/strip/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "/home/kamal/SB_project/Pythons/venvlist/strip/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
raise _exception[1]
File "/home/kamal/SB_project/Pythons/venvlist/strip/lib/python3.10/site-packages/django/core/management/init.py", line 394, in execute
autoreload.check_errors(django.setup)()
File "myenv/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "myenv/lib/python3.10/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "myenv/lib/python3.10/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "myenv/lib/python3.10/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "myenv/lib/python3.10/site-packages/allauth/account/models.py", line 13, in
from . import app_settings, signals
File "myenv/lib/python3.10/site-packages/allauth/account/app_settings.py", line 402, in
app_settings = AppSettings("ACCOUNT")
File "myenv/lib/python3.10/site-packages/allauth/account/app_settings.py", line 23, in init
assert (
AssertionError

@pennersr
Copy link
Owner

pennersr commented Feb 2, 2024

You did not paste all -- what is the AssertionError that you are getting?

@kamalktwl
Copy link
Author

when i install in pip and also added setting same that time comes out error

i have install in pip command
pip install django-allauth

settings.py
INSTALLED_APPS = [
'subscription',
# ...
'allauth',
'allauth.account',
]
errors_

@pennersr
Copy link
Owner

pennersr commented Feb 2, 2024

This points to an error in your configuration. Have a look here at the various checks that are being done:

https://github.com/pennersr/django-allauth/blob/main/allauth/account/app_settings.py#L27

Then, check those against your configuration. Or, put a breakpoint() in there.

@pennersr pennersr closed this as completed Feb 2, 2024
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

2 participants