Skip to content

Tera template linter and formatter

djLint lints and formats Tera templates. Set the tera profile so the rules and the formatting fit them.

What is Tera?

Terminal window
djlint /path/to/templates --profile=tera

Configure djLint in your project’s pyproject.toml, djlint.toml / .djlint.toml, or .djlintrc file.

pyproject.toml
[tool.djlint]
profile = "tera"
djlint.toml / .djlint.toml
profile = "tera"
.djlintrc
{ "profile": "tera" }