Django Url Tag And Reverse Function Example
Using url tag and reverse() function, you can avoid hard-coding urls in template html files and views. So that even if the url path changes, it has no effect on templates and views source code. In fact, in the template view, if you want to get the currently accessed url, it’s more convenient to use …