Djoser for DRF with Knox tokens
问题 I'm trying to use djoser with token authentication, but using django-rest-knox tokens. I have set the TOKEN_MODEL to knox.models.AuthToken , and the rest framework's DEFAULT_AUTHENTICATION_CLASSES to knox.auth.TokenAuthentication . I naïvely thought that this would be enough, but it seems that Djoser's inbuilt serializers (create token, and token), don't work properly with the knox tokens. I tried overriding them with custom serializers, but I didn't get anywhere (which is not to say it's not