Fixed #24143 -- Encouraged use of Http404 messages for debugging.

This commit is contained in:
Keryn Knight 2015-01-13 08:02:17 +00:00 committed by Tim Graham
parent a34fba5e59
commit 726a9550db
4 changed files with 10 additions and 5 deletions

View file

@ -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/