Wednesday, July 4, 2012

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 %}
    <h1>Sorry, there was an error</h1>
   
    <h2>
        <p>
            We've encountered a problem.
        </p>
        <br/>
       
        <p>
            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.
        </p>
        <br/>
    </h2>
{% 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 Sopacua <m.r.sopacua@gmail.com> wrote:
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment