I think reverse() was what I was looking for as I wanted the same capability to not have to hardcode values into template_name that the HTML code has with tags by using the name assigned to it in urls.py.
If I understand correctly, for
urlpatterns = [
path("leadership/", views.leadership, name="leadership"),
]
these two are equivalent in terms of what to render:
return render(request, "leadership.html", context)
return render(reverse("leadership"), context)
and by using reverse() changes to urls.py will be anywhere the name is used.
As I understand the documentation, reverse(views.leadership) would work but since I namespaced my templates it would not work.
Thanks again.