mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
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:
parent
b71032fa13
commit
431813c9b1
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue