Django view doesn't work at all after setting debug=False

Your GET still doesn’t match the URL. The url is defined with a trailing slash, but your GET doesn’t show that slash as being present.

With debug = True, there should be a complete stacktrace printed in your server’s log. (How are you running your application? Which server are you using?)

Also, your title isn’t consistent with the post - when is the error occurring? When DEBUG = True or DEBUG = False? Your title says that the view isn’t working when DEBUG = False, but you’ve labeled your logs such that the error occurs when DEBUG = True.