ImportError: No module named social_django.models
See original GitHub issueWhen i tried makemigrations i take following error
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
django.setup()
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/giverroot/django/gve1/lib/python2.7/site-packages/social/apps/django_app/default/models.py", line 1, in <module>
from social_django.models import AbstractUserSocialAuth, UserSocialAuth, Nonce, Association, Code, DjangoStorage
ImportError: No module named social_django.models
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:24 (7 by maintainers)
Top Results From Across the Web
python-social-auth with Django: ImportError: No module ...
An error while migrating -"no module named 'social_django'." Related. 1 · Django, I am getting "ERROR: Module: models could not be imported" ...
Read more >No module named 'social_django' but 'social-auth-app-django ...
The Solution: Reinitialize the virtual environment using python 3.10 instead of python 3.8 and reinstall necessary packages. Explanation: The problem was that I ......
Read more >python-social-auth with Django: ImportError: No ... - YouTube
Django : python-social-auth with Django: ImportError : No module named ' social_django ' [ Beautify Your Computer ...
Read more >Django Framework - Python Social Auth documentation
A list of available backend names not associated with the current user yet. ... see the social_django.models and social_django_mongoengine.models modules ...
Read more >ModuleNotFoundError: No module named 'django' - QueWorx
If you got the error “ModuleNotFoundError: No module named 'django'” it means that Python couldn't find your Django package. Here's the full error...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You also need to install
social-auth-app-django
and addsocial.apps.django_app.default
to your INSTALLED_APPS in your settings.py file.@palzuncoff
You should be using the new social-app-django.
Check out how to use that in this doc: https://github.com/omab/python-social-auth/blob/master/MIGRATING_TO_SOCIAL.md