A template with a custom user model built on top of the AbstractBaseUser. Integrates allauth and DRF providing CustomUserViewset
, CustomUserSerializer
, permission classes, admin classes, and following endpoints:
api/users/
api/users/<int:pk>
Plus endpoints provided by allauth. See installation instructions.
The CustomUser
model has an email identifying field and, by default, does not accept a username as described in Advanced Usage.
- You need a custom user. Then, go to users/models.py and customize the
CustomUser
model to fit your needs. - You want to authenticate your users via email instead of a username.
- You don't need a username at all.
- You are happy with allauth.
- Model:
CustomUser
,CustomUserManager
- Forms:
CustomSignupForm