Browse Source

Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation

Alex de Landgraaf 11 years ago
parent
commit
b645be80e9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      docs/ref/urlresolvers.txt

+ 3 - 0
docs/ref/urlresolvers.txt

@@ -23,6 +23,9 @@ keyword arguments to use in the URL matching. For example::
     def myview(request):
     def myview(request):
         return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
         return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
 
 
+If no match can be made, ``reverse()`` raises a
+:class:`~django.core.urlresolvers.NoReverseMatch` exception.
+
 The ``reverse()`` function can reverse a large variety of regular expression
 The ``reverse()`` function can reverse a large variety of regular expression
 patterns for URLs, but not every possible one. The main restriction at the
 patterns for URLs, but not every possible one. The main restriction at the
 moment is that the pattern cannot contain alternative choices using the
 moment is that the pattern cannot contain alternative choices using the