|
|
@ -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:
|
|
|
|