Monday, July 26, 2010

Re: What goes in 500.html?

On 24/07/10 20:14, Michael Hipp wrote:
> What should go in a proper 500.html page?

As little as you can get away with; it's for when your server has
screwed up.

However, you probably want to make it distinguishable from the
apache-level 500 page, in a manner you can ask a user reporting a
failure a single simple question to tell the difference. At one stage I
had the bright idea of making them look the exact same for appearances'
sake. That was dumb.

> Is some content fed to it that
> should be displayed?
>
Not really, it's intended to be pretty static, something that django has
a hope of outputting even in a royally messed up config.

> Similarly for 404.html?
>

That's a bit different, put pictures of kittens or whatever you want.

--
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