Django Registration Redux: how to change the unique identifier from username to email and use email as login

后端 未结 3 1972
故里飘歌
故里飘歌 2020-12-19 20:21

I\'m using django-registration-redux in my project for user registration. It uses default User model which use username as the unique

3条回答
  •  生来不讨喜
    2020-12-19 21:07

    You will want to use AbstractBaseUser. Docs are here:

    https://docs.djangoproject.com/en/1.8/topics/auth/customizing/

    Good luck!

提交回复
热议问题