When i override the handler404 and handler500 in my urls.py like so:
from myapp.views import not_found_view
handler404 = not_found_view
handler500 = not_found_view
and call raise Http404() in my middleware, i see my 404 page.
When i remove both handler404 and handler500 from my urls.py and raise Http404() in my middleware, i see my default 500 error page (from Django Suit) - hence the reason i'm trying to set a custom 404 template to be used on raise Http404()'s.
Now my problem: when i remove the handler500 and only set the handler404, i also get to see a HTTP 500 page! :|
Why is my handler500 called when i raise Http404() ??
I have multiple template directories in multiple apps, i tried placing a 404.html in my main app that contains the settings and in another 'normal' app but that didn't work..
I've set DEBUG to False as well.
Hope someone can answer my question!