Skip to content

Askama template linter and formatter

djLint lints and formats Askama templates. Set the askama profile so the rules and the formatting fit them.

What is Askama?

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

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

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