Exemplo n.º 1
0
 def get(self,request):
     instance = CeleryClient()
     response = instance.registered_tasks()
     if not response:
         return HttpResponse(json.dumps([]),content_type="application/json")
     else:
         return HttpResponse(json.dumps(response),content_type="application/json")
Exemplo n.º 2
0
 def get(self,request):
     instance = CeleryClient()
     response = instance.registered_tasks()
     return render_to_response('monitor/registered_tasks.html',locals())