1
Most likely such errors will return HTTP 500 server error.
In django you can write your own custom view to handle such cases and return your own page with the html that you like.
The 500 (server error) view explains writing server error views. There are more types of errors handled as explained on same page.
0
An option for handling HTTP 500 errors, add this to your Settings file,
handler500 = 'mysite.views.my_custom_error_view'
and in the view, you can render the “error page” using
HttpResponseNotFound('<h1>Page not found</h1>')
the server_error() view will be overridden by handler500.
- [Answer]-Django at extra_context 'unicode' object does not support item assignment
- [Answer]-Why do we need fields value in Meta class in Django forms?
- [Answer]-Seeking help in designing django models
- [Answer]-Edx platform table doesnt exist after migrate
- [Answer]-Django show "It worked" page instead of my project when I start it docker
Source:stackexchange.com