Ticket #16653: 16653.diff

File 16653.diff, 753 bytes (added by Christopher Medrela, 12 years ago)
  • docs/topics/http/urls.txt

    diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
    index 5c9711c..19ffc5a 100644
    a b This ``current_app`` argument is used as a hint to resolve application  
    846846namespaces into URLs on specific application instances, according to the
    847847:ref:`namespaced URL resolution strategy <topics-http-reversing-url-namespaces>`.
    848848
     849You can use ``kwargs`` instead of ``args``, for example::
     850
     851    >>> from django.core import urlresolvers
     852    >>> urlresolvers.reverse('admin:app_list', kwargs={'app_label': 'auth'})
     853    '/admin/auth/'
     854
    849855``args`` and ``kwargs`` cannot be passed to ``reverse()`` at the same time.
    850856
    851857.. admonition:: Make sure your views are all correct.
Back to Top