[Answer]-Error when trying to connect to twitter with django social auth

1👍

Not directly related to the question, but this is the only related page Google showed when searching for this error so I’ll post this hoping that someone making the same mistake will see it. The error I was getting was:

ImportError at /complete/facebook/
No module named pipeline.social_auth

I got this error because I was trying to use the django-social-auth pipelines with python-social-auth. If you are using python-social-auth, you will need the following:

SOCIAL_AUTH_PIPELINE = (
    'social.pipeline.social_auth.social_details',
    'social.pipeline.social_auth.social_uid',
    'social.pipeline.social_auth.auth_allowed',
    'social.pipeline.social_auth.social_user',
    'social.pipeline.user.get_username',
    #'social.pipeline.social_auth.associate_by_email',
    'social.pipeline.user.create_user',
    'social.pipeline.social_auth.associate_user',
    'social.pipeline.social_auth.load_extra_data',
    'social.pipeline.user.user_details'
)

More details can be found here.

Leave a comment