0

I have a custom user model that is based on AbstractBaseUser, PermissionsMixin and I would love to use a package such as django-allauth and/or social-auth-app-django. I have done some research but did not find any tutorials or examples. Can somebody recommend anything?

1 Answer 1

1

You need to set the User model for the social auth package in your settings.py. For example:

SOCIAL_AUTH_USER_MODEL = 'app.YourCustomUser'

Read more about it here: https://python-social-auth.readthedocs.io/en/latest/configuration/settings.html#user-model

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.