I think I've tried everything I found on the internet in the past 2 days and I can't find the right setting to display the error pages.
My views a...
For further actions, you may consider blocking this person and/or reporting abuse
The handlers must be in the main url files. You created the portfolio as your project or is an app? Must be the main url files( the one created with startproject command)
you are a lifesaver
Here's my project structure. As on my post, the handlers are on the main urls.py
handler404 = 'portfolio.views.handler500'
handler500 = 'portfolio.views.handler500'
You meant
handler404 = 'portfolio.views.handler404'
handler500 = 'portfolio.views.handler500'
oh yeah. I think I already changed that to app.views.handlerX. Still getting the error. It pisses me off.
from django.views.default import page_not_found
def handler_404(request, exception):
return page_not_found(request, exception, template_name="errors/404.html")
Have u tried this?
wsvincent.com/django-local-404-page/
Yup, gives me internal server error. I sent a tweet to him but got no reply. Thanks tho.