0
votes

I want to add login from social auth in my project. i.e. I want to use django social auth.

I followed following document document 1, document 3 and "STEP-BY-STEP GUIDE TO SOCIAL LOGINS WITH DJANGO SOCIAL AUTH" document.

But after following every document, i am getting following errors....

1. error when login from facebook and google_oauth2

Exception Type: AttributeError

Exception Value:    can't set attribute

and

2. error when login from twitter.

Exception Type: IntegrityError

Exception Value:    Key (email)=() already exists.

Please help me for solving this errors or tell me how to follow these document or tell me any other document to use django social auth in my project.

I am new in django..

1

1 Answers

1
votes

Haven't got much experience working with SocialAuth, it seems here you are trying to create a new user with the same email for which the User object already exists.

I recently used "AllAuth", this seems to have a much wider utility set, is easy to integrate and support for the same is still provided. You could integrate and use the same using the following links:

Hope this helps!