DRF auth_token: “non_field_errors”: [ “Unable to log in with provided credentials.”
问题 Both JWT packages written for Django gave me issues with poor documentation, so I try DRF-auth_token package. This is a good example I followed, Django Rest Framework Token Authentication. You should in theory be able to go to localhost:8000/api-token-auth/ urls.py: from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.models import User from rest_framework.authtoken import views urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^api/',