I got error on my django rest framework, I am running it on windows 10 OS. this is the entire error:
Traceback (most recent call last):
File \"manage.py\",
You currently define the login URL as:
url(r'^login/$', views.login, template_name, name='login'),
In Django 2.1, this deprecated functionality was removed.
To fix the issue, you can change the line to:
url(r'^login/$', views.LoginView.as_view(template_name=template_name), name='login'),
See the authentication views documentation for more details.
You are using the unreleased master branch of Django, which has removed the old function-based login view. You should use the released version 1.11, where they are still present (but deprecated).
The latest master of DRF has removed this reference, but you should stick with released versions anyway.