From bd08cfca6ff04e7cec940f5b59e97cdcceddcc69 Mon Sep 17 00:00:00 2001 From: Keryn Knight Date: Tue, 13 Jan 2015 08:02:17 +0000 Subject: [1.7.x] Fixed #24143 -- Encouraged use of Http404 messages for debugging. Backport of 726a9550db5129badc1c44809b0bed728fa1ad90 from master --- docs/intro/tutorial03.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/intro') diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 59e68ef6bb..95f0dca7b4 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -441,7 +441,7 @@ for a given poll. Here's the view: try: question = Question.objects.get(pk=question_id) except Question.DoesNotExist: - raise Http404 + raise Http404("Question does not exist") return render(request, 'polls/detail.html', {'question': question}) The new concept here: The view raises the :exc:`~django.http.Http404` exception -- cgit v1.3