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?

Über die Befehlszeile

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

Oder über eine Konfigurationsdatei

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

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