According to the docs of url the_url
is empty if the reverse of the url fails:
{% url 'some-url-name' as the_url %}
In my case I would like to get an exception, since I want my tests to fail if my code is broken.
How to store the result of reverse to a variable (and get an exception if the reverse failed)?