return redirect('%s?next=%s' % (settings.LOGIN_URL, request.path))
return render(request, 'myapp/login_error.html')