Django Rest Framework + AngularJS not logging user in or throwing errors
问题 This is my URLS.py: from django.conf.urls import url from django.conf.urls import include from CMSApp import views urlpatterns = [ url(r'^$', views.HomePageView.as_view()), url(r'^users$', views.user_list.as_view()), url(r'^users/(?P<pk>[0-9]+)$', views.user_detail.as_view()), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), ] So to login, I use the URL /api-auth/login. When I go to /api-auth/login, I see the DRF login screen. If I type in an incorrect username