From b645be80e99709c8b1f9b3d1c26e99e22fdca08b Mon Sep 17 00:00:00 2001 From: Alex de Landgraaf Date: Sun, 23 Feb 2014 13:21:09 +0100 Subject: [PATCH] Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation --- docs/ref/urlresolvers.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index f0b8466ca0..3467319d2f 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -23,6 +23,9 @@ keyword arguments to use in the URL matching. For example:: def myview(request): 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 patterns for URLs, but not every possible one. The main restriction at the moment is that the pattern cannot contain alternative choices using the