Ejemplo n.º 1
0
 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")
Ejemplo n.º 2
0
 def get(self,request):
     instance = CeleryClient()
     response = instance.active_queues()
     return render_to_response('monitor/queues_configuration.html',locals())