diff options
Diffstat (limited to 'docs/url_dispatch.txt')
| -rw-r--r-- | docs/url_dispatch.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/url_dispatch.txt b/docs/url_dispatch.txt index 1a2efe605a..402b1200b5 100644 --- a/docs/url_dispatch.txt +++ b/docs/url_dispatch.txt @@ -564,10 +564,11 @@ code, Django provides the ``django.core.urlresolvers.reverse()``. The reverse(viewname, urlconf=None, args=None, kwargs=None) -The view name is either the function name or the `URL pattern name`_. -Normally you will not need to worry about the ``urlconf`` parameter and will -only pass in the positional and keyword arguments to use in the url matching. -For example:: +``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 +`URL pattern name`_. Normally, you won't need to worry about the +``urlconf`` parameter and will only pass in the positional and keyword +arguments to use in the URL matching. For example:: from django.core.urlresolvers import reverse |
