(self, request)
return render(
            request,
            "login.html",
            {"url": RequestSite(request), "next": request.GET.get("next", "")},
        )
Shows the login page
Shows the login page
Shows the login page
def get(self, request):
        """Shows the login page"""

        # Do not show login page for already-logged-in users
        if request.user.is_authenticated:
            return HttpResponseRedirect(DEFAULT_LOGIN_REDIRECT)

        return render(
            request,
            "login.html",
            {"url": RequestSite(request), "next": request.GET.get("next", "")},
        )
def get ( self , request ) : # Do not show login page for already-logged-in users if request . user . is_authenticated : return HttpResponseRedirect ( DEFAULT_LOGIN_REDIRECT ) return render ( request , "login.html" , { "url" : RequestSite ( request ) , "next" : request . GET . get ( "next" , "" ) } , )