[Twisted-web] Custom 404/500 page example.. working
Cory Dodt
corydodt at twistedmatrix.com
Wed Nov 24 10:53:30 MST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Presented for your coding pleasure:
http://divmod.org/users/wiki.twistd/nevow/moin.cgi/Custom404Page?action=show
I believe this is a fairly common use case: You want to automatically handle
404 and 500 errors by returning a custom Page of your own design. The example
above shows you how to do it.
The same location previously held a version that used stan. With some help
from Donovan and James I (finally) got it working with xml templates as well.
C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBpMqa3A5SrXAiHQcRAqK0AKCApV2k35MroB4zOX5klkzwg/1E3gCdEBXm
fW/H/m3/PFB+zLTqYX5Ki/Q=
=mKCT
-----END PGP SIGNATURE-----
More information about the Twisted-web
mailing list