Change to skip template loaders whose load method is not implemented. This happens with the Django cached template loader, in particular.

This commit is contained in:
kmooney 2011-06-30 12:26:50 -05:00 committed by Jannis Leidel
parent fb1fdcbd84
commit c588e51e83

View file

@ -34,6 +34,8 @@ def get_template_source(name):
source, origin = load_template_source(name)
if source:
return source
except NotImplementedError:
pass
except TemplateDoesNotExist:
pass
if source is None and VERSION[:2] < (1, 2):