AUTH_USER_MODEL = 'accounts.CustomUser' code example Example: import abstractuser from django.contrib.auth.models import AbstractUser