Exemplo n.º 1
0
def logout(request):
    # res=redirect(reverse('pollproject:login'))
    # res.delete_cookie('username')
    # return res
    # request.session.flush()
    lot(request)
    return redirect(reverse('pollproject:login'))
Exemplo n.º 2
0
def logout(request):
    #删除使用cookie
    # print(dir(request.COOKIES))
    # res=redirect(reverse("newvote:login"))
    # res.delete_cookie('username')
    # return res
    #删除使用session
    # request.session.flush()
    #使用授权模块
    lot(request)
    return redirect(reverse("newvote:login"))
Exemplo n.º 3
0
def logout(requset):

    lot(requset)
    url = reverse("polls:index")
    return redirect(to=url)
Exemplo n.º 4
0
def logout(request):
    lot(request)
    url = reverse('polls:index')
    return redirect(to=url)
Exemplo n.º 5
0
def logout(request):
    # 调用django的登出方法 目的是为了删除cookie
    lot(request)
    url = reverse("polls:index")
    return redirect(to=url)
Exemplo n.º 6
0
def logout(request):
    #  调用Django的登出方法  为了删除cookie
    lot(request)
    url = reverse("polls:polls")
    return redirect(to=url)
Exemplo n.º 7
0
def logout(res):
    # 调用Djano的登出方法删除Cook信息
    lot(res)
    url = reverse('polls:index2')
    return redirect(to=url)
Exemplo n.º 8
0
def logout(request):
    lot(request)
    return redirect(reverse("blog:blog"))
Exemplo n.º 9
0
def logout(request):
    lot(request)
    res = redirect(reverse("sellfresh:index"))
    res.delete_cookie('good_ids')
    return res