summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-11-17 20:03:15 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-11-17 20:03:15 +0000
commit204253ed40dc6f56d666e5fb2568de1535c18fc3 (patch)
treec35a5be4bcabb25c6949e21972f595e0392da17a /docs
parentfc47f8c65af80872c5031e20260100efb4afa1e4 (diff)
Fixed #14713 -- documented that resolve can raise Http404. Thanks to Adam for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/urls.txt3
-rw-r--r--docs/topics/http/views.txt2
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index 6179c3003e..00ee483457 100644
--- a/docs/topics/http/urls.txt
+++ b/docs/topics/http/urls.txt
@@ -837,6 +837,9 @@ worry about the ``urlconf`` parameter. The function returns a
:class:`django.core.urlresolvers.ResolverMatch` object that allows you
to access various meta-data about the resolved URL.
+If the URL does not resolve, the function raises an
+:class:`~django.http.Http404` exception.
+
.. class:: ResolverMatch()
.. attribute:: ResolverMatch.func
diff --git a/docs/topics/http/views.txt b/docs/topics/http/views.txt
index 399e6b6ad1..3ff11da1e9 100644
--- a/docs/topics/http/views.txt
+++ b/docs/topics/http/views.txt
@@ -95,6 +95,8 @@ to handle those errors.
The Http404 exception
---------------------
+.. class:: django.http.Http404()
+
When you return an error such as ``HttpResponseNotFound``, you're responsible
for defining the HTML of the resulting error page::