view Jun 14, 2020 • Michael return redirect('%s?next=%s' % (settings.LOGIN_URL, request.path)) return render(request, 'myapp/login_error.html')