typingsSun, 12 Feb 2023

create logout button

def logout(request): if request.method == 'POST': auth.logout(request) return redirect('/')

Want to kickstart your project?Use the new AI Studio to create your code