Can't login to django admin after creating a super user with a custom user model
问题 I've been trying for hours to login to the django admin panel with a successfully created superuser but cannot get the right username/pw combo right. I want users to just use their email as their username. I've also done my best to replicate the example in the Django docs here. I've deleted migrations, sycndb, and everything works except logging in to the admin panel. Relevant code: From models.py : from django.db import models from django.forms import ModelForm from django.contrib.auth