Answers for "logout code in django"

1

django logout

from django.contrib.auth import logout

def logout_view(request):
    logout(request)
    # Redirect to a success page.
Posted by: Guest on February-02-2021
1

django logout user

def logout_request(request):
      logout(request)
      return redirect("")
Posted by: Guest on August-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language