简体   繁体   中英

Why am I getting this Import Error? ImportError: cannot import name 'setting' from 'social_django.utils'

I am not completely sure what all info is needed to diagnose this issue so I want to apologize in advance. I am trying to allow people to login via facebook and when I tried to migrate my changes I received this Import Error. ImportError: cannot import name 'setting' from 'social_django.utils'

I think you should import psa like from social_django.utils import psa in your get_user_login/views.py file The package has been updated to change the package structure since the answer posted. Kindly check the updated documentation here http://python-social-auth-docs.readthedocs.io/en/latest/use_cases.html#signup-by-oauth-access-token

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM