diff --git a/app/pyproject.toml b/app/pyproject.toml index 5be1384..3f54884 100644 --- a/app/pyproject.toml +++ b/app/pyproject.toml @@ -8,3 +8,6 @@ select = [ "I", "W" ] + +[tool.djlint] +profile = "django" diff --git a/app/templates/400.html b/app/templates/400.html index da81bca..5659e1f 100644 --- a/app/templates/400.html +++ b/app/templates/400.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Bad request (400)" %}{% endblock %} -{% block error_message %}{% trans "The server cannot process the request due to client error." %}{% endblock %} +{% block error_title %} + {% trans "Bad request (400)" %} +{% endblock %} +{% block error_message %} + {% trans "The server cannot process the request due to client error." %} +{% endblock %} diff --git a/app/templates/403.html b/app/templates/403.html index 8b8dbb5..33fa6d6 100644 --- a/app/templates/403.html +++ b/app/templates/403.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Forbidden (403)" %}{% endblock %} -{% block error_message %}{% trans "You do not have permission to access on this server." %}{% endblock %} +{% block error_title %} + {% trans "Forbidden (403)" %} +{% endblock %} +{% block error_message %} + {% trans "You do not have permission to access on this server." %} +{% endblock %} diff --git a/app/templates/404.html b/app/templates/404.html index 649e22c..1b152ae 100644 --- a/app/templates/404.html +++ b/app/templates/404.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Not found (404)" %}{% endblock %} -{% block error_message %}{% trans "The requested page was not found on this server." %}{% endblock %} +{% block error_title %} + {% trans "Not found (404)" %} +{% endblock %} +{% block error_message %} + {% trans "The requested page was not found on this server." %} +{% endblock %} diff --git a/app/templates/500.html b/app/templates/500.html index be6be8d..1782d0c 100644 --- a/app/templates/500.html +++ b/app/templates/500.html @@ -1,7 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Internal Server Error (500)" %}{% endblock %} +{% block error_title %} + {% trans "Internal Server Error (500)" %} +{% endblock %} {% block error_message %} -{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} + {% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} {% endblock %} diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html index 84dfac5..f9e2fdd 100644 --- a/app/templates/admin/base_site.html +++ b/app/templates/admin/base_site.html @@ -10,25 +10,26 @@ should be incorporated here, and update the links above that serve as the point of comparison. {% endcomment %} - {% load static %} {% load i18n %} - -{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} - +{% block title %} + {% if subtitle %}{{ subtitle }} |{% endif %} + {{ title }} | {{ site_title|default:_("Django site admin") }} +{% endblock %} {% block extrastyle %} - - - + + + {% endblock %} - {% block branding %} -