From 5903e10d8743145af3035c707389664c93be746c Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 24 Feb 2019 20:15:52 +0100 Subject: [PATCH] Redirect user to login page after logout --- dal/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dal/views.py b/dal/views.py index 0dcaeea..fb28dd3 100644 --- a/dal/views.py +++ b/dal/views.py @@ -441,7 +441,13 @@ class DeleteAccount(LoginRequiredMixin, View): class LogOut(View): def get(self, request): logout(request) - return HttpResponse("You have been logged out.", status=200) + return HttpResponse( + "You have been logged out. You will be redirected in 2 seconds." + "", + status=200 + )