def task_view(self, request):
    if not request.is_ajax():
        raise Http404
task_id = request.GET.get('task_id')
return HttpResponse('Success')
Django: How to call management custom command execution from admin interface?