I use LoginView class in Django. We can use this class as login view with a HTML template, like below:
urls:
from django.contrib.auth.views import LoginView
urlpatterns = [
path('', LoginView.as_view(), {'template_name': 'login.html'}),
]
login.html:
<head>
<title>test<title>
{% load static %}
</head>
<body>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
</form>
</body>
my question is where renders function dictionary or httprequest fill? and how can I change, form.as_p to login_form.as_p, for example?
You can get help from Django official doc