No module named 'social_django'/'social'
See original GitHub issueHello. I installed social-auth-app-django, but if I try to run migrate, I get following error message:
Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line 353, in execute_from_command_line utility.execute() File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line 327, in execute django.setup() File "C:\Python34\lib\site-packages\django\__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Python34\lib\site-packages\django\apps\registry.py", line 85, in populate app_config = AppConfig.create(entry) File "C:\Python34\lib\site-packages\django\apps\config.py", line 90, in create module = import_module(entry) File "C:\Python34\lib\importlib\__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked ImportError: No module named 'social_django'
If I use python-social-auth, I get following the same error message:
ImportError: No module named 'social'
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
I helped the decision! pip install python-social-auth[django]
or pip install social-auth-app-django
and in INSTALLED APPS … … ‘social_django’, ‘social.apps.django_app.default’, Good luck
Also dont forget to enter shell before installing for example run ‘pipenv shell’