Search code examples
djangodjango-authentication

Can't login to django with cusom user but for super it work fine


I custom the default user by using AbstractBaseUser and BaseUserManager and also i creat a backend.py which handles authentication Email but it doesn't work, however superuser is work fine

Thanks


Solution

  • Make your custom user admin by providing is_admin = True in your create custom user function.Then only it can login to django.