asphalt.templating.renderers.django

class asphalt.templating.renderers.django.DjangoRenderer(engine: typing.Union[django.template.engine.Engine, typing.Dict[str, typing.Any]] = None, package_paths: typing.Iterable[str] = ()) → None

Renders Django templates.

Parameters:
  • engine (Union[Engine, Dict[str, Any], None]) – a Django template engine object or keyword arguments for its constructor
  • package_paths (Iterable[str]) – if given, looks up the directories containing the given package and fills in or extends the dirs argument for Engine. The value will be interpreted by package_to_directory().