diff options
| author | Keryn Knight <keryn@kerynknight.com> | 2015-01-13 08:02:17 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-16 09:42:03 -0500 |
| commit | bd08cfca6ff04e7cec940f5b59e97cdcceddcc69 (patch) | |
| tree | 420c0116fbeff1c704d8a6a5ba58132880b9cd0e /docs/intro/tutorial03.txt | |
| parent | 065b2a82f6d7539032e15308351fa5eee95c0cb9 (diff) | |
[1.7.x] Fixed #24143 -- Encouraged use of Http404 messages for debugging.
Backport of 726a9550db5129badc1c44809b0bed728fa1ad90 from master
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
