Fixed #9495 -- Corrected typo in urls doc. Thanks seemant.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
83af0b8ff3
commit
8a5f2ee912
|
@ -554,7 +554,7 @@ give a name to a URL pattern in order to distinguish it from other patterns
|
||||||
using the same view and parameters. Then, you can use this name in reverse URL
|
using the same view and parameters. Then, you can use this name in reverse URL
|
||||||
matching.
|
matching.
|
||||||
|
|
||||||
Here's the above example, rewritten to used named URL patterns::
|
Here's the above example, rewritten to use named URL patterns::
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
url(r'/archive/(\d{4})/$', archive, name="full-archive"),
|
url(r'/archive/(\d{4})/$', archive, name="full-archive"),
|
||||||
|
|
Loading…
Reference in New Issue