template.loaders.base.Loader.get_contents()

get_contents(origin)

Returns the contents for a template given a Origin instance.

This is where a filesystem loader would read contents from the filesystem, or a database loader would read from the database. If a matching template doesn’t exist, this should raise a TemplateDoesNotExist error.

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

Please login to continue.