change from throwing a Http404 exception, which I believe will try to render a…
change from throwing a Http404 exception, which I believe will try to render a static 404.html template - and ironically triggers a 500 server error. Just create a HttpResponse and set the status_code to 404.
Showing
Please
register
or
sign in
to comment