forked from expo/troggle
re-ordering middleware and logon system
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user