[Django]-Python/Django list object has not attribute 'status_code'

1👍

Like @bruno said Django views must return HttpResponse.

To do that I simply had to wrap my return statement around an HttpResponse so it looked like this:

return HttpResponse(map(str, soup.find_all('a', href = re.compile('.getJobInfo'))))

3👍

A Django view must return an HttpResponse, not a list.

Leave a comment