path('account/login', auth_views.LoginView.as_view(template_name='main/log_form.html'), name='login'),
path('account/logout/', auth_views.LogoutView.as_view(template_name='main/logout.html'), name='logout'),
How to customize django loginView?
CodePudding user response:
In this example of the documentation it is shown how custom authentication works in Django. In the same page there is an example on how to log an user in