Hello,
in part 3 of the tutorial ( Writing your first Django app, part 3 | Django documentation | Django ), there is a demonstration of using Http404 (“Raising a 404 error”).
My question is this.
If I have DEBUG=True in settings.py, I have a nice debug error page which in particular displays the phrase:
”Question does not exist” ––
according to the exception in the function detail(…) in views.py.
But if I have DEBUG=False (which I need to do in real life), I see a dumb 404 page without anything useful for a user.
Is this by design?
I was expecting the same ”Question does not exist” as it is raised in this function:
raise Http404(“Question does not exist”)
Otherwise, it is kind of the same as
raise Http404(“Whatever”).
???
Thank you.