def index(request): if request.method == 'GET': frog_auth_check.send(sender=None, request=request) if not request.user.is_anonymous(): return HttpResponseRedirect('/frog/gallery/1') return render(request, 'frog/index.html', {'title': 'Frog Login'}) else: return upload(request)
def index(request): if request.method == 'GET': frog_auth_check.send(sender=None, request=request) if not request.user.is_anonymous(): return HttpResponseRedirect('/frog/gallery/1') return render(request, INDEX_HTML, getBranding()) else: return upload(request)
def index(request): return upload(request)