when i call runDelete, then it will call run, so why \"view didn\'t return an HttpResponse object\" happen?
thanks:)
Django views are expected to return HttpResponse
objects. Your view does call run
but it does not return anything (remember that Python functions return None
in the absence of a statement explicitly returning something else). So change this line from:
run(request, build)
to:
return run(request, build)
Of course this will only work if run
returns an HttpResponse
instance.