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.