module documentation

Undocumented

Class DjangoTemplates No class docstring; 0/1 instance variable, 0/1 class variable, 1/4 method documented
Class Template Undocumented
Function copy_exception Create a new TemplateDoesNotExist. Preserve its declared attributes and template debug data but discard __traceback__, __context__, and __cause__ to make this object suitable for keeping around (in a cache, for example).
Function get_installed_libraries Return the built-in template tag libraries and those from installed applications. Libraries are stored in a dictionary where keys are the individual module names, not the full module paths. Example: django...
Function get_package_libraries Recursively yield template tag libraries defined in submodules of a package.
Function get_template_tag_modules Yield (module_name, module_path) pairs for all installed template tag libraries.
Function reraise Reraise TemplateDoesNotExist while maintaining template debug information.
def copy_exception(exc, backend=None): (source)

Create a new TemplateDoesNotExist. Preserve its declared attributes and template debug data but discard __traceback__, __context__, and __cause__ to make this object suitable for keeping around (in a cache, for example).

def get_installed_libraries(): (source)

Return the built-in template tag libraries and those from installed applications. Libraries are stored in a dictionary where keys are the individual module names, not the full module paths. Example: django.templatetags.i18n is stored as i18n.

def get_package_libraries(pkg): (source)

Recursively yield template tag libraries defined in submodules of a package.

def get_template_tag_modules(): (source)

Yield (module_name, module_path) pairs for all installed template tag libraries.

def reraise(exc, backend): (source)

Reraise TemplateDoesNotExist while maintaining template debug information.