What is reverse()?
reverse() | Django documentation Let’s suppose that in your urls.py you have defined this: url(r’^foo$’, some_view, name=”url_name”), In a template you can then refer to this url as: <!– django <= 1.4 –> <a href=”{% url url_name %}”>link which calls some_view</a> <!– django >= 1.5 or with {% load url from future %} in your … Read more