Login View

Report a typo

Create MyLoginView class and inherit it from LoginView.

The attribute of the class should satisfy the following conditions:

  • the authenticated user should not be redirected from the login page
  • the name of template it uses is customized_login.html
Write a program in Python 3
from django.contrib.auth.views import LoginView


class MyLoginView:
...
___

Create a free account to access the full topic