Example #1
0
def loginout(request):
    # 删除 cookie

    lout(request)
    url = reverse("qikuapp:index")

    return redirect(to=url)
Example #2
0
def logout(request):
    lout(request)
    return redirect('home')
Example #3
0
def test(request):
    lout(request)
    return HttpResponse(str(request.user.is_authenticated()))
Example #4
0
def logout(request):
    # 调用django的登出方法,为了删除cookie
    lout(request)
    url = reverse("polls:index")
    return redirect(to=url)
def logout(request):
    lout(request)
    return redirect('polls.views.index')
Example #6
0
def logout(request):
    lout(request)
    return redirect('accounts:login')
Example #7
0
def logout(request):
    lout(request)
    return redirect('/login')
Example #8
0
def logout(request):
    lout(request)
    return render(request, 'home.html')
def logOut(request):
    # id = request.session["user_id"]
    use = request.user
    lout(request)
    return redirect('/')
Example #10
0
def logout(request):
    lout(request)
    return redirect('budgeteer:home')
Example #11
0
def logout(request):
    lout(request)
    return redirect('index')
Example #12
0
def logoutFunction(request):
    lout(request)
    specificUser.clear()
    return Response("logout successfull")
Example #13
0
def logout(request):
    if request.user.is_authenticated:
        lout(request)
        return redirect('/')
    return redirect('/login')