diff --git a/pygitweb/settings.py b/pygitweb/settings.py
index 0ee4c08..b214cb0 100644
--- a/pygitweb/settings.py
+++ b/pygitweb/settings.py
@@ -21,6 +21,7 @@ from pygitweb.config import (
 from pygitweb.formatting import esc_html
 from pygitweb.git_helpers import open_repo
 from pygitweb.projects import git_get_projects_list
+from pygitweb.templates_env import POSTAMBLE, PREAMBLE, env
 from pygitweb.validation import is_valid_project
 
 
@@ -29,8 +30,6 @@ def _quote_path(path: str) -> str:
 	return quote(path, safe="/")
 
 
-from pygitweb.templates_env import POSTAMBLE, PREAMBLE, env
-
 # libgit2 config levels: only local (5) and worktree (6) for per-repo editing
 GIT_CONFIG_LEVEL_LOCAL = 5
 GIT_CONFIG_LEVEL_WORKTREE = 6
