2016-05-10 7 views
0

J'ai tout configuré pour social auth sur mon application, et cela fonctionne sur localhost. Maintenant, je suis en train de le déployer sur Heroku, mais lorsque je tente de se connecter avec Facebook (par exemple) je reçois cette erreur:Problème de migration avec Python Social Auth sur Heroku (application Django)

relation "social_auth_usersocialauth" does not exist 
LINE 1: ..._admin", "custom_user_customuser"."is_staff" FROM "social_au... 

J'ai essayé makemigrations python manage.py puis heroku exécuter python manage.py migrer, mais cela ne fonctionne pas; quand je feu "émigre" Je reçois ceci:

Your models have changes that are not yet reflected in a migration, and so won't be applied. 
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. 
+0

vous aurez besoin de faire ./manage.py makemigrations socialauth – e4c5

+0

je reçois " Impossible de trouver l'application 'socialauth' dans INSTALLED_APPS? " –

+0

Eh bien, il y a votre problème. Si vous utilisez l'authentification sociale, il devrait y être! – e4c5

Répondre

0

est de faire avec le changement de nom de l'application pour python-social-auth ->-auth social-app-django et les changements d'étiquettes d'applications associées.

Vous devez passer à socialauth-app-django> = 1.0.0 pour résoudre ce problème:

Your models have changes that are not yet reflected in a migration, and so won't be applied.