def logout(request): """ This view allows user to logout """ out(request) messages.add_message(request, messages.INFO, 'Revenez vite nous voir !') return redirect('home')
def logout(request): out(request) return redirect('/')
def logout(request): if request.method == "POST": out(request) return HttpResponseRedirect( "http://127.0.0.1:8000/patient_profile/create/")
def logout(request): out(request) return HttpResponse("logged out")
def logout(request): out(request) print("hi people") messages.info(request, "Logged out successfully!") return render(request, 'doctor/logout.html')
def logout(request): # Logout function out(request) return redirect( '../login/' ) # Once the user has been logged out redirect him into the login page
def post(self, request, *args, **kwargs): out(request) previous = request.POST.get('previous', reverse('home:home_view')) return HttpResponseRedirect(previous)
def logout(request): out(request) return redirect("/home/home3")