fix: 修复访问 flower 错误

pull/7884/head
ibuler 3 years ago committed by Jiangjie.Bai
parent aa9ae14e46
commit 0fbc548c02

@ -16,7 +16,7 @@ __all__ = ['celery_flower_view']
def celery_flower_view(request, path): def celery_flower_view(request, path):
if not request.user.has_perm('ops.view_taskmonitor'): if not request.user.has_perm('ops.view_taskmonitor'):
return HttpResponse("Forbidden") return HttpResponse("Forbidden")
remote_url = 'http://{}/{}'.format(flower_url, path) remote_url = 'http://{}/core/flower/{}'.format(flower_url, path)
try: try:
response = proxy_view(request, remote_url) response = proxy_view(request, remote_url)
except Exception as e: except Exception as e:

Loading…
Cancel
Save