Youssef NAIMI
Youssef NAIMI

Reputation: 59

DJANGO: No module named social_auth.backends.contrib.github

I had this error when I tried to sign in using github auth backend

No module named social_auth.backends.contrib.github

settings.py

AUTHENTICATION_BACKENDS = (
    'social_auth.backends.contrib.github.GithubBackend',
    'django.contrib.auth.backends.ModelBackend',
)

Upvotes: 2

Views: 2076

Answers (1)

Sebastian Wozny
Sebastian Wozny

Reputation: 17526

It should be

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'social.backends.github.GithubOAuth2',
)

for python-social-auth

Upvotes: 2

Related Questions