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/ref | |
| parent | 065b2a82f6d7539032e15308351fa5eee95c0cb9 (diff) | |
[1.7.x] Fixed #24143 -- Encouraged use of Http404 messages for debugging.
Backport of 726a9550db5129badc1c44809b0bed728fa1ad90 from master
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 b3f33c8da8..dc6cea46bb 100644 --- a/docs/ref/contrib/sites.txt +++ b/docs/ref/contrib/sites.txt @@ -84,7 +84,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/ |
