middleware.py
2.25 KB
- 
change from throwing a Http404 exception, which I believe will try to render a… · 3fa1fe0cchange 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. Chris Dodge committed