What message page is displayed to the visitor when my Webfaction site encounters a MySQL "1040: Too Many Connections" error? (I have a Django site on a shared server). Is there any way to customize it? asked 25 Aug '14, 15:00 xnx |
An error such as this would return a 500 response code, so your site will display either your custom 500.html template (if you have one), or the standard Apache "internal server error" page. You can customize it by making your own 500.html template, along with some logic to detect the specific error you're targeting. There's some info here that might be helpful: answered 25 Aug '14, 17:58 seanf Thanks for this. So I need to write a 500.html file, set
(25 Aug '14, 18:18)
xnx
You'll need to look in the contents of the traceback to identify the type of error - some examples of how to get to the traceback are in the StackOverflow post to which I linked in my answer.
(25 Aug '14, 18:22)
seanf
|