{% with request.resolver_match.url_name as url_name %} {% endwith %}