Django Template Linter and Formatter

djLint lints and formats Django templates. Set the django profile so the rules and the formatting fit them.

What is Django?

Using the command line

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

Or, use a config file

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

[tool.djlint]
profile = "django"
profile = "django"
{ "profile": "django" }