X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ab7d1efef433b723e30a62773f3cf0bbbb35a407..8025c32db79387a8e57d4222d9489c1e85040c57:/templatetags/nodes.py diff --git a/templatetags/nodes.py b/templatetags/nodes.py index 9721ec4..73492d4 100644 --- a/templatetags/nodes.py +++ b/templatetags/nodes.py @@ -51,7 +51,9 @@ class NodeURLNode(template.Node): subpath = reverse(view_name, urlconf=node.view, args=args, kwargs=kwargs) except NoReverseMatch: if self.as_var is None: - raise + if settings.TEMPLATE_DEBUG: + raise + return settings.TEMPLATE_STRING_IF_INVALID else: if subpath[0] == '/': subpath = subpath[1:]