Note the "url" templatetag (built-in for newer Django versions) that does a reverse url lookup by view name.