[Fixed]-Django test client get returns 404 however works in shell

1👍

The problem, as suggested by Alasdair was the view. I had a get_object_or_404 shortcut and did not provide the needed object. Hence, the view was returning 404 and the test was failing…

Leave a comment