A Django template formatter that ensures consistent formatting of Django templates. It supports Jinja2-style templates with Django tags and filters, and is designed to be fast and configurable. Current version is 1.9.0, released with regular updates.
pip install djadeVerified import paths — ran on the pinned version, not inferred.
Basic usage of djade to format a Django template string.
Use a Jinja2-specific formatter like `djlint` for Jinja2 templates.
Set the environment variable or configure settings via `--settings` option if using CLI; in code, set `os.environ['DJANGO_SETTINGS_MODULE']` before using djade.
Use `from djade import Djade; formatter = Djade(); formatted = formatter.format(source)` instead of `djade.format_code(source)`.
No dependency data recorded yet.