Error in Django login page in pyhton

url (r"^ login/$",login, {"template_name":" user/login.html"}, name="login"),
TypeError: login () got an unexpected keyword argument "template_name", I used python3.7 and Django2.0, at the beginning, but django2.0 does not support the login () function, so I changed the Django version to version 1.10 in the virtual environment, but the above error occurred, how to solve

Apr.29,2021
Menu