django.urls utility functions
django.urls utility functions
Deprecated since version 1.10: In older versions, these functions are located in django.core.urlresolvers
. Importing from the old location will continue to work until Django 2.0.
reverse()
If you need to use something similar to the url
template tag in your code, Django provides the following function:
-
reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None)
[source]
<