def select_template(template_name_list):
    for template_name in template_name_list:
        try:
            return get_template(template_name)
        except TemplateDoesNotExist:
            continue
    # If we get here, none of the templates could be loaded
    raise TemplateDoesNotExist, ', '.join(template_name_list)
Given a list of template names, returns the first that can be loaded.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/template/loader.py/select_template