我使用的是Django注册标准urlPatterns,但我想重命名它的模板名称.默认情况下为注册/login.html.源代码中有一个我想要更改的参数"TEMPLATE_NAME":
class LoginView(RedirectURLMixin, FormView):
"""
Display the login form and handle the login action.
"""
form_class = AuthenticationForm
authentication_form = None
template_name = "registration/login.html"
redirect_authenticated_user = False
extra_context = None
我怎样做,在哪里做?(附注:Django.contrib.auth.views.LoginView.template_name=名称不起作用,或者我只是写错了位置)