1👍
This syntax is not valid in Django 1.5, and for this very reason. You must now either use a variable, or a literal string surrounded with quotes, for the url name. That makes it easy to do what you like: define a context variable for the view name, and use that in the url tag.
Source:stackexchange.com