
stackoverflow.com
https://stackoverflow.com/questions/11241668/what-…
django - What is reverse ()? - Stack Overflow
Given a url pattern, Django uses url () to pick the right view and generate a page. That is, url--> view name. But sometimes, like when redirecting, you need to go in the reverse direction and give Django the name of a view, and Django generates the appropriate url. In other words, view name --> url. That is, reverse() (it's the reverse of the url function). It might seem more transparent to ...