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

前端 未结 5 978
独厮守ぢ
独厮守ぢ 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 00:59

    Did you remember to set in settings:

    AUTH_USER_MODEL = 'your_app_name.User'
    

提交回复
热议问题