mirror of
https://github.com/django/django.git
synced 2025-08-15 16:20:37 +00:00
[1.7.x] Fixed #24143 -- Encouraged use of Http404 messages for debugging.
Backport of 726a9550db
from master
This commit is contained in:
parent
065b2a82f6
commit
bd08cfca6f
4 changed files with 10 additions and 5 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue