Reputation: 1
I am following the steps provided here:
Django error in django-social-auth
And also here:
http://django-allauth.readthedocs.io/en/latest/installation.html
And the same error comes from using both methods. What am I doing wrong? I am using a virtual environment if that affects anything. The exact thing I am getting is this: EDIT: Also had this top part:
Traceback (most recent call last): File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django\apps\config.py", line 118, in create cls = getattr(mod, cls_name)
AttributeError: module 'allauth' has no attribute 'account'
Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv)
File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django\core\management__init__.py", line 353, in execute_from_command_line utility.execute()
File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django\core\management__init__.py", line 327, in execute django.setup()
File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django__init__.py", >line 18, in setup apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django\apps\registry.py", line 85, in populate app_config = AppConfig.create(entry)
File "C:\Users\Bararon\Envs\cinemaphile\lib\site-packages\django\apps\config.py", line 123, in create import_module(entry)
File "C:\Users\Bararon\Envs\cinemaphile\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'allauth.account'
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# My Apps
'base',
'users',
# The Django sites framework is required
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
# Login Facebook provider
'allauth.socialaccount.providers.facebook',
]
Upvotes: 0
Views: 1726
Reputation: 1
I had a similar problem, where I was getting an error like ModuleNotFoundError: No module named 'allauth.socialaccountcore'
And all I did to fix it was change the order of installed apps list in settings.py. Old order:
NSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'core'
]
New order:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'core',
'allauth',
'allauth.account',
'allauth.socialaccount',
] I could not really understand it well why would it happen. May be some one who understands can help with explanation.
Upvotes: 0