Jump to >

djblets.extensions.loaders

Template loaders for extensions.

class Loader(*args, **kwargs)[source]

Bases: django.template.loader.BaseLoader

Loads templates found within an extension.

This will look through all enabled extensions and attempt to fetch the named template under the templates directory within the extension’s package.

This should be added last to the list of template loaders.

New in version 0.9.

is_usable = True[source]
load_template_source(template_name, template_dirs=None)[source]

Load templates from enabled extensions.

load_template_source(template_name, template_dirs=None)[source]

Load templates from enabled extensions.

Deprecated since version 0.9: This will be removed in a future version. You should instead include djblets.extensions.loaders.Loader in the list of template loaders.