custom error handlers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

custom error handlers

Václav Mach
Hi,

I'd like to write some custom error handlers for 404 and 500 status codes.

I'm using the example code from
https://docs.djangoproject.com/en/2.2/topics/http/views/#testing-custom-error-views 
. There seems to be something wrong with the example code because i'm
getting just '<h1>403 Forbidden</h1>' which is the default error handler
content. How to write custom error handler with defined content?

cheers,
Vaclav
--
Václav Mach
tel: +420 234 680 206
CESNET, z.s.p.o.
www.cesnet.cz

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c924defd-95eb-783f-6b20-f89c4392898d%40cesnet.cz.

smime.p7s (4K) Download Attachment