template.loader.select_template()

select_template(template_name_list, using=None) [source]

select_template() is just like get_template(), except it takes a list of template names. It tries each name in order and returns the first template that exists.

If loading a template fails, the following two exceptions, defined in django.template, may be raised:

doc_Django
2016-10-09 18:39:49
Comments
Leave a Comment

Please login to continue.