def file_download(request, task_id): file_path = "%s/%s/%s/%s" % (settings.BASE_DIR, settings.FileUploadDir, request.user.userprofile.id, task_id) return utils.send_zipfile(request, task_id, file_path)