python-social-auth / social-app-django

Python Social Auth - Application - Django
BSD 3-Clause "New" or "Revised" License
2.04k stars 380 forks source link

relation "social_auth_usersocialauth" does not exist #108

Open Andre-Oliveira opened 6 years ago

Andre-Oliveira commented 6 years ago

After installing using

pip install social-auth-app-django

and adding it to the installed apps i don't get any new migrations, when i run

python manage.py showmigrations

social_django isnt listed either which results on receiving the following error message

Exception Type: | ProgrammingError
relation "social_auth_usersocialauth" does not exist

when i try to login using Facebook authentication (i expected an error like this to occur since no changes to the database were made)

Any idea on how i could fix this?

social_django is on the INSTALLED_APPS login redirect and backends are in the templates options SocialAuthExceptionMiddleware is in the MIDDLEWARE_CLASSES

Python Version: 2.7.14 Django Version: 1.8.7

omab commented 6 years ago

Is social_django in the PYTHONPATH? Are you able to import from it when running manage.py shell?

boscorona commented 6 years ago

@omab I'm able to import it, but I receive the same error as above.

SantiagoMoyano commented 5 years ago

@nbosco how did you manage to get this fixed?