custom error handlers

6 views
Skip to first unread message

Václav Mach

unread,
Aug 13, 2019, 3:42:19 PM8/13/19
to django...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages