summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial03.txt
diff options
context:
space:
mode:
authorKeryn Knight <keryn@kerynknight.com>2015-01-13 08:02:17 +0000
committerTim Graham <timograham@gmail.com>2015-01-16 09:41:01 -0500
commit726a9550db5129badc1c44809b0bed728fa1ad90 (patch)
tree783f0146d577359f789234f75fa69f5dae5c66b9 /docs/intro/tutorial03.txt
parenta34fba5e596a3ec95bf284fd77b1609e71a65019 (diff)
Fixed #24143 -- Encouraged use of Http404 messages for debugging.
Diffstat (limited to 'docs/intro/tutorial03.txt')
-rw-r--r--docs/intro/tutorial03.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index c4590abf23..83ed0cff70 100644
--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -442,7 +442,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