#3335: Flatpages with DEBUG=False requires 404.html
---------------------------------------------------+------------------------
Reporter: Rob Hudson <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
Contrib apps
Version: SVN | Resolution:
Keywords: | Stage:
Design decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------------------+------------------------
Comment (by Simon G. <[EMAIL PROTECTED]>):
To avoid a "Django-look" (although the Django look is certainly nothing
bad!) You could just use something similar to the standard Apache errors:
{{{
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL {{ request.path|escape }} was not found on
this server.</p>
<hr>
<address>
<a href="http://www.djangoproject.com">Django - The Web
framework for perfectionists with deadlines.</a>
</address>
</body>
</html>
}}}
{{{
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>Internal Server Error</h1>
<p>I'm sorry, that page is currently unavailable due to a server
misconfiguration.</p>
<p>The server administrator has been notified, and we apologise
for any inconvenience.</p>
<hr>
<address>
<a href="http://www.djangoproject.com">Django - The Web
framework for perfectionists with deadlines.</a>
</address>
</body>
</html>
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/3335#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---