When I added abstract = True to this code:
customUser(AbstractBaseUser,PermissionsMixin):
id = models.autofield(primary_key = True)
class Meta:
verbose_name = 'User'
verbose_name_plural = 'Users'
abstract = True
it is returing this error:
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model core.CustomUser' that has not been installed but settings.py is properly set.
Why does this happen?
abstract = Truemeans, it will not create a db table for that model. So, it can't be use as user model or use for authentication, login.Reference