Hi,
You could generate your 500.html file by rendering a different
template file that does get a RequestContext. This way you can use the
MEDIA_URL and things like that without hardcoding them in your
500.html file. Ofcourse you need to regenerate your 500.html file when
you change your settings,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Jun 23, 2008, at 12:28, Jason Davies wrote:
> The default error handler is easily overridden so that it tries using
> RequestContext first and then falls back to using Context if that
> fails.
- -1, strong. You swallow an exception for another. Wi
Dear all,
I have several clients who make heavy use of MEDIA_URL for styling
their sites. The pages generated by the default 500 error handler
look rather ugly without any CSS or images, and the lack of branding
confuses customers.
The default error handler is easily overridden so that it tries