Zum Inhalt springen

Linter und Formatter für Django-Templates

djLint lintet und formatiert Django-Templates. Setzen Sie das Profil django, damit Regeln und Formatierung zu ihnen passen.

Was ist Django?

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

Konfigurieren Sie djLint in der Datei pyproject.toml, djlint.toml / .djlint.toml oder .djlintrc Ihres Projekts.

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