There is a function that does this too!  `reverse()` takes a view name and parameters, and gives you the full view path: https://docs.djangoproject.com/en/1.4/topics/http/urls/#reverse And as long as you give the right parameters, it'll handle the differences of URLs in stacked and map vs tree / pie / product correctly.