Home

Django - Add custom User model

It can be worth adding a custom User model at the start of a project to make it easier later on:
from django.contrib.auth.models import AbstractUser
    class User(AbstractUser):
        pass

    AUTH_USER_MODEL = "myapp.User"

Source - https://news.ycombinator.com/item?id=29837171