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

        previous = request.POST.get('previous', reverse('home:home_view'))
        return HttpResponseRedirect(previous)
Example #8
0
def logout(request):
    out(request)
    return redirect("/home/home3")