def registered_tasks(request):
 return JsonResponse({'regular': tasks.regular().keys(), 'periodic': tasks.periodic().keys()})

def registered_tasks ( request ) : return JsonResponse ( { 'regular' : tasks . regular ( ) . keys ( ) , 'periodic' : tasks . periodic ( ) . keys ( ) } )
view returning all defined tasks as a json object .