Ticket #14713: resolve-http404.diff

File resolve-http404.diff, 961 bytes (added by Adam Vandenberg, 14 years ago)
  • docs/topics/http/urls.txt

    diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
    index 6179c30..00ee483 100644
    a b worry about the ``urlconf`` parameter. The function returns a  
    837837:class:`django.core.urlresolvers.ResolverMatch` object that allows you
    838838to access various meta-data about the resolved URL.
    839839
     840If the URL does not resolve, the function raises an
     841:class:`~django.http.Http404` exception.
     842
    840843.. class:: ResolverMatch()
    841844
    842845    .. attribute:: ResolverMatch.func
  • docs/topics/http/views.txt

    diff --git a/docs/topics/http/views.txt b/docs/topics/http/views.txt
    index 399e6b6..3ff11da 100644
    a b to handle those errors.  
    9595The Http404 exception
    9696---------------------
    9797
     98.. class:: django.http.Http404()
     99
    98100When you return an error such as ``HttpResponseNotFound``, you're responsible
    99101for defining the HTML of the resulting error page::
    100102
Back to Top