question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named social_django.models

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:24 (7 by maintainers)

github_iconTop GitHub Comments

18reactions
ghoshbishakhcommented, Dec 28, 2016

You also need to install social-auth-app-django and add social.apps.django_app.default to your INSTALLED_APPS in your settings.py file.

4reactions
ghoshbishakhcommented, Dec 30, 2016

@palzuncoff

As for Dec 03 2016, this library is now deprecated.

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found