I tried to print this in the template, but it renders blank. Whats the correct way to get URL name in template?
{{ request.resolver_match.url_name }}
I wanted it to highlight something in the top bar (if path is 'admin-stuff' add highlight class).