Re: custom500 page does not show up ?
Hi Melvyn, The interesting thing is 404.html is working but not 500.html. In settings paths are dynamically set. Also i am receiving the error messages on my email as i am the admin. Let say there is some syntax error so in the email it will give me information about that but without displaying 500 page. I am amazed then why 404 is working. On Wed, Jul 4, 2012 at 11:28 PM, Melvyn Sopacuawrote: > On 4-7-2012 19:08, Nikhil Verma wrote: > > Hi Melvyn > > > > > > > > [ ] Make sure your custom page is not sent with tools like netcat, > > telnet or curl. > > > > i did not turn anything its a simple custom page. > > Sorry I worded that rather bad. Your goal is to connect to the page that > triggers a 500 error with one of the tools I mentioned so you can see > the actual response, not what your browser shows you as the browser > could be showing you it's own "server error" page. > > > [ ] Make sure your custom page is not generating a 500 error by itself > > > > {% extends 'base.html' %} > > > > {% block title %} > > 500 - Server Error > > {% endblock %} > > > > {% block content %} > > Sorry, there was an error > > > > > > > > We've encountered a problem. > > > > > > > > > > We apologize for any inconvenience this has caused you. > > Citysom is undergoing constant improvement. > > We hope that you will not have problems in the future. > > > > > > > > {% endblock %} > > Of course, you can still have the error in base.html. > > > [ ] If the logger has been turned off, turn it back on and read the > > email sent to the admin address. > > > > I have not put any log. > > See settings.py, the bottom part. If debug is set to 'off', 500 errors > are mailed to the DJANGO_ADMIN. > > > The interesting part is everything is working properly in my local > machine. > > [ ] Make sure that absolute paths in settings.py point to actual > directories on the production server. > -- > Melvyn Sopacua > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards Nikhil Verma +91-958-273-3156 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: custom500 page does not show up ?
On 4-7-2012 19:08, Nikhil Verma wrote: > Hi Melvyn > > > > [ ] Make sure your custom page is not sent with tools like netcat, > telnet or curl. > > i did not turn anything its a simple custom page. Sorry I worded that rather bad. Your goal is to connect to the page that triggers a 500 error with one of the tools I mentioned so you can see the actual response, not what your browser shows you as the browser could be showing you it's own "server error" page. > [ ] Make sure your custom page is not generating a 500 error by itself > > {% extends 'base.html' %} > > {% block title %} > 500 - Server Error > {% endblock %} > > {% block content %} > Sorry, there was an error > > > > We've encountered a problem. > > > > > We apologize for any inconvenience this has caused you. > Citysom is undergoing constant improvement. > We hope that you will not have problems in the future. > > > > {% endblock %} Of course, you can still have the error in base.html. > [ ] If the logger has been turned off, turn it back on and read the > email sent to the admin address. > > I have not put any log. See settings.py, the bottom part. If debug is set to 'off', 500 errors are mailed to the DJANGO_ADMIN. > The interesting part is everything is working properly in my local machine. [ ] Make sure that absolute paths in settings.py point to actual directories on the production server. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: custom500 page does not show up ?
Hi Melvyn [ ] Make sure your custom page is not sent with tools like netcat, telnet or curl. i did not turn anything its a simple custom page. [ ] Make sure your custom page is not generating a 500 error by itself {% extends 'base.html' %} {% block title %} 500 - Server Error {% endblock %} {% block content %} Sorry, there was an error We've encountered a problem. We apologize for any inconvenience this has caused you. Citysom is undergoing constant improvement. We hope that you will not have problems in the future. {% endblock %} [ ] If the logger has been turned off, turn it back on and read the email sent to the admin address. I have not put any log. The interesting part is everything is working properly in my local machine. Thanks for help. On Wed, Jul 4, 2012 at 9:28 PM, Melvyn Sopacuawrote: > On 4-7-2012 5:21, Nikhil Verma wrote: > > HI All > > > > I have made a custom and a very simple 500.html page. However when i make > > debug=False and some error come in website > > still it show basic server error message. > > > > "A server error has occurred.Please contact the administrator" > > > > I want whenever there is some error it should show my custom 500 page. > > Your checklist: > [ ] Make sure your custom page is not sent with tools like netcat, > telnet or curl. > [ ] Make sure your custom page is not generating a 500 error by itself > [ ] If the logger has been turned off, turn it back on and read the > email sent to the admin address. > > > -- > Melvyn Sopacua > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Regards Nikhil Verma +91-958-273-3156 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: custom500 page does not show up ?
On 4-7-2012 5:21, Nikhil Verma wrote: > HI All > > I have made a custom and a very simple 500.html page. However when i make > debug=False and some error come in website > still it show basic server error message. > > "A server error has occurred.Please contact the administrator" > > I want whenever there is some error it should show my custom 500 page. Your checklist: [ ] Make sure your custom page is not sent with tools like netcat, telnet or curl. [ ] Make sure your custom page is not generating a 500 error by itself [ ] If the logger has been turned off, turn it back on and read the email sent to the admin address. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
custom500 page does not show up ?
HI All I have made a custom and a very simple 500.html page. However when i make debug=False and some error come in website still it show basic server error message. "A server error has occurred.Please contact the administrator" I want whenever there is some error it should show my custom 500 page. I tried by making a custom function and then setting the handler500="path" but still with no luck. Anyone can help in this as to how can i resolve this problem? Thanks -- Regards Nikhil Verma +91-958-273-3156 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.