Django drf simple-jwt authentication“detail”: “No active account found with the given credentials”
问题 I am implementing user authentication with django-rest_framework_simple-jwt with custom user, My models.py: class UserManager(BaseUserManager): def create_user(self, email, username, password, alias=None): user = self.model( email = self.normalize_email(email), username = username,) user.set_password(password) user.save() return user def create_superuser(self, email, username, password): self.create_user(email, username, password) user.is_staff() user.is_superuser = True user.save() return