Django drf simple-jwt authentication“detail”: “No active account found with the given credentials”

前端 未结 5 975
独厮守ぢ
独厮守ぢ 2021-01-18 00:28

I am implementing user authentication with django-rest_framework_simple-jwt with custom user, My models.py:

class UserManager(BaseUserManager):
    def crea         


        
5条回答
  •  野的像风
    2021-01-18 01:05

    You should create new superuser account after setting up JWT authentication

    then use that account to get the token

    python manage.py createsuperuser
    

提交回复
热议问题