{{{
reverse()
If you need to use something similar to the url template tag in your code,
Django provides the following function:
}}}
which doesn't really explain what's being reversed here.
After thinking for a while, it seems the idea is that you're mapping the
view name to its URL, whereas the "default" case is mapping a URL to its
associated view. This really needs to be stated clearly in the docs, as
it's not very intuitive to a new user.
--
Ticket URL: <https://code.djangoproject.com/ticket/33910>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
[https://docs.djangoproject.com/en/stable/ref/urlresolvers/#django.urls.reverse
Docs] contain more than this single sentence. There is a whole paragraph
with examples and a full description of the `reverse()` function. I see no
need for extra clarifications.
--
Ticket URL: <https://code.djangoproject.com/ticket/33910#comment:1>