1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Made reverse() docs more self-contained.

This commit is contained in:
Clifford Gama 2024-11-27 20:26:14 +02:00 committed by GitHub
parent 73d532d9a9
commit e9929cb494
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,8 +7,8 @@
``reverse()`` ``reverse()``
============= =============
If you need to use something similar to the :ttag:`url` template tag in The ``reverse()`` function can be used to return an absolute path reference
your code, Django provides the following function: for a given view and optional parameters, similar to the :ttag:`url` tag:
.. function:: reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None) .. function:: reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None)