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:41:01 -0500 |
| commit | 726a9550db5129badc1c44809b0bed728fa1ad90 (patch) | |
| tree | 783f0146d577359f789234f75fa69f5dae5c66b9 /docs/ref | |
| parent | a34fba5e596a3ec95bf284fd77b1609e71a65019 (diff) | |
Fixed #24143 -- Encouraged use of Http404 messages for debugging.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/sites.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/sites.txt b/docs/ref/contrib/sites.txt index da7b73caed..91fbd2af85 100644 --- a/docs/ref/contrib/sites.txt +++ b/docs/ref/contrib/sites.txt @@ -88,7 +88,7 @@ This accomplishes several things quite nicely: try: a = Article.objects.get(id=article_id, sites__id=get_current_site(request).id) except Article.DoesNotExist: - raise Http404 + raise Http404("Article does not exist on this site") # ... .. _ljworld.com: http://www.ljworld.com/ |
