From ffaaea497c44f362a619d95da097def836a28b50 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 27 Mar 2021 18:22:07 +0000 Subject: re-ordering middleware and logon system --- core/views_other.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/views_other.py') diff --git a/core/views_other.py b/core/views_other.py index 0944d55..67726cc 100644 --- a/core/views_other.py +++ b/core/views_other.py @@ -34,7 +34,11 @@ def troggle404(request): # cannot get this to work. Handler404 in urls.py not ri def showrequest(request): return HttpResponse(request.GET) -def frontpage(request): +def frontpage(request): + '''never seen in practice''' + # bthe messages system does a popup on this page if there is a recent message, e.g. from the admin site actions. + # via django.contrib.messages.middleware.MessageMiddleware + # this is set in the templates. if request.user.is_authenticated(): return render(request,'tasks.html') -- cgit v1.2.3