template.base.Origin

class Origin [source]

name

The path to the template as returned by the template loader. For loaders that read from the file system, this is the full path to the template.

If the template is instantiated directly rather than through a template loader, this is a string value of <unknown_source>.

template_name

The relative path to the template as passed into the template loader.

If the template is instantiated directly rather than through a template loader, this is None.

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

Please login to continue.