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
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
2 matches
Mail list logo