I’m trying to set up my 404 and 500 error pages but if I turn debug to false and go to an invalid url another error page appears which isnt mine. How can I fix that? urls.py
You don’ t need to map the templates with a view, only put your 404.html and 500.html files inside the “templates” directory in any of the apps of your Django project.
If you do want a custom view, you need to assign the view to the handler, not a string representing the view: handler404 = StartSite.views.view_404
(instead of handler404 = 'StartSite.views.view_404')
Also, you do not need those entries in the urlpatterns. The sample in the doc is only there to give you a url to test the error.