Edited docs/url_dispatch.txt changes from [5362]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4cda993213
commit
956056f7b5
|
@ -564,11 +564,11 @@ code, Django provides the ``django.core.urlresolvers.reverse()``. The
|
||||||
|
|
||||||
reverse(viewname, urlconf=None, args=None, kwargs=None)
|
reverse(viewname, urlconf=None, args=None, kwargs=None)
|
||||||
|
|
||||||
The view name is either the function name (either a function reference, or the
|
``viewname`` is either the function name (either a function reference, or the
|
||||||
string version of the name, if you used that form in ``urlpatterns``) or the
|
string version of the name, if you used that form in ``urlpatterns``) or the
|
||||||
`URL pattern name`_. Normally you will not need to worry about the
|
`URL pattern name`_. Normally, you won't need to worry about the
|
||||||
``urlconf`` parameter and will only pass in the positional and keyword
|
``urlconf`` parameter and will only pass in the positional and keyword
|
||||||
arguments to use in the url matching. For example::
|
arguments to use in the URL matching. For example::
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue