def get_urls(self):
    urls = super(FooAdmin, self).get_urls()
extra_urls = patterns('', ('^my-task/$', self.admin_site.admin_view(self.
    parse_view)))
return extra_urls + urls

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?