1
0
mirror of https://github.com/django/django.git synced 2024-12-22 09:05:43 +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()``
=============
If you need to use something similar to the :ttag:`url` template tag in
your code, Django provides the following function:
The ``reverse()`` function can be used to return an absolute path reference
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)