mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-05-02 12:44:48 +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
fb1fdcbd84
commit
c588e51e83
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue