def get(self,request): instance = CeleryClient() response = instance.active_queues() if not response: return HttpResponse(json.dumps([]),content_type="application/json") else: return HttpResponse(json.dumps(response),content_type="application/json")
def get(self,request): instance = CeleryClient() response = instance.active_queues() return render_to_response('monitor/queues_configuration.html',locals())