1
0
mirror of https://github.com/django/django.git synced 2025-03-13 02:40:47 +00:00

[1.6.x] Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation

Backport of b645be80e99709c8b1f9b3d1c26e99e22fdca08b from master.
This commit is contained in:
Alex de Landgraaf 2014-02-23 13:21:09 +01:00 committed by Baptiste Mispelon
parent 12da6902e9
commit 23cbfc9a25

View File

@ -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