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/ref/contrib/sites.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/ref') 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/ -- cgit v1.3