Askama Template Linter and Formatter

djLint is an Askama template linter and an Askama template formatter! Take advantage of the pre-build profile when linting and formatting your templates with djLint.

What is Askama?

Using the Command Line

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

Or, Use a Config File

Configure djLint in your projects pyproject.toml.

[tool.djlint]
profile="askama"
Edit this page Updated Jul 20, 2026