Fixed #9047 -- Marked up django.core.urlresolvers.reverse() properly in the

docs. It now appears in the index.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-10-06 08:27:24 +00:00
parent 8fb1459b52
commit a011a49457
1 changed files with 4 additions and 3 deletions

View File

@ -594,10 +594,11 @@ reverse()
--------- ---------
If you need to use something similar to the :ttag:`url` template tag in If you need to use something similar to the :ttag:`url` template tag in
your code, Django provides the ``django.core.urlresolvers.reverse()``. The your code, Django provides the following method (in the
``reverse()`` function has the following signature:: ``django.core.urlresolvers`` module):
reverse(viewname, urlconf=None, args=None, kwargs=None) .. currentmodule:: django.core.urlresolvers
.. function:: reverse(viewname, urlconf=None, args=None, kwargs=None)
``viewname`` 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