python-social-auth with Django: ImportError: No module named 'social_django'

孤街浪徒 提交于 2019-11-29 09:31:23

To use Django with python social auth, you need to install the Django app as well.

You can specify that you want to install the extra requirements for Django when you install python-social-auth:

pip install python-social-auth[django]

Or, in this case, you can install the missing package individually:

pip install social-auth-app-django

Probably you should use pip 3:

pip3 install social-auth-app-django

USE pip install python-social-auth[django] instead of pip install python-social-auth while installing


i have first done install pip install python-social-auth

Run

error: No module named 'social_django'

Then i install

pip install python-social-auth[django]

RUN

Operations to perform: Apply all migrations: admin, auth, contenttypes, music, sessions, social_django Running migrations: Applying social_django.0001_initial... OK Applying social_django.0002_add_related_name... OK Applying social_django.0003_alter_email_max_length... OK Applying social_django.0004_auto_20160423_0400... OK Applying social_django.0005_auto_20160727_2333... OK Applying social_django.0006_partial... OK


Running migrations:

For extra support

Migrating from python-social-auth to split social

enter link description here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!