Re: Custom Error 400/500 page in Django

2017-01-03 Thread ludovic coues
In your first exemple, you return a class but in your second exemple you return an instance of the class. That might explain the difference you notice. The documentation on HttpResponseBadRequest mention it is used like an HttpResponse object and part 3 of the django tutorial show how to render a

Custom Error 400/500 page in Django

2017-01-03 Thread Sergiy Smertelny
There is some strange problem. When I do like this def error_page(request): return HttpResponseBadRequest it raises My custom error page that I listed in main URLconf. But when I pass and exception there - I got just a blank page with the text of exception. For example, view is something