ERRORS:*: (auth.E003) ‘User.username‘ must be unique because it is named as the ‘USERNAME_FIELD
在找一个唯一索引字段例:emailclassMyUser(AbstractUser):username=models.CharField(max_length=30,unique=False)email=models.EmailField(max_length=255,unique=True)USERNAME_FIELD='email'如果您使用可支持它的自定义身份验证后端,则允许使用非唯一的用户