omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

[Flask] ImportError: cannot import name social_auth #1077

Closed jingz closed 7 years ago

jingz commented 7 years ago

backtrack

  File ".../application/__init__.py", line 145, in register_social_auth
    from social.apps.flask_app.routes import social_auth
ImportError: cannot import name social_auth

packages

python-social-auth (0.3.3)
social-auth-app-flask (0.1.0)
social-auth-app-flask-sqlalchemy (0.0.1)
social-auth-core (0.2.1)
social-auth-storage-sqlalchemy (0.0.1)
jingz commented 7 years ago

just use

from social_flask.routes import social_auth