Ticket #14046: patch.diff
File patch.diff, 1.7 KB (added by , 14 years ago) |
---|
-
django/template/loader_tags.py
149 149 template_name = self.template_name.resolve(context) 150 150 t = get_template(template_name) 151 151 return t.render(context) 152 except TemplateSyntaxError, e:152 except: 153 153 if settings.TEMPLATE_DEBUG: 154 154 raise 155 return '' 156 except: 157 return '' # Fail silently for invalid included templates. 155 return '' # Fail silently for invalid included templates if settings,TEMPLATE_DEBUG is False 158 156 159 157 def do_block(parser, token): 160 158 """