template.loaders.base.Loader.load_template()

load_template(template_name, template_dirs=None) [source]

Returns a tuple of (template, template_origin), where template is a Template object and template_origin is a string identifying the template source. A filesystem-based loader may return the full path to the file as the template_origin, for example.

Deprecated since version 1.9: Custom loaders should use get_template() and get_contents() instead.

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

Please login to continue.