Search code examples
pythondjangoauthenticationdjango-socialauth

What the difference between SOCIAL_AUTH_USER_MODEL(django-social-auth) and AUTH_USER_MODEL(Django)?


A bit frustrated about this.

What the difference between those options?

Which I need to use to override default django user model?

What the value SOCIAL_AUTH_USER_MODEL has by default?


Solution

  • To override the default django user model use AUTH_USER_MODEL. To use django-social-auth with the new model point to it by using SOCIAL_AUTH_USER_MODEL. Both use auth.User by default.