Skip to content

Commit b5d957c

Browse files
committed
fix(bakerydemo): install wagtail-font-awesome-svg and add to INSTALLED_APPS
bakerydemo's wagtail_hooks.py uses wagtailfontawesomesvg templates for admin icons. Since bakerydemo has no pyproject.toml its deps don't install automatically, so explicitly pip-install wagtail-font-awesome-svg after the bakerydemo sys_path install. Also add "bakerydemo" (root package, exposes templates) and "wagtailfontawesomesvg" to INSTALLED_APPS via _configure_bakerydemo.
1 parent 2dd6075 commit b5d957c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/dbx_python_cli/commands/project.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,18 @@ def add_project(
704704
typer.echo("🧁 Installing bakerydemo...")
705705
try:
706706
_install_with_repos(["bakerydemo"], python_path)
707+
subprocess.run(
708+
[
709+
"uv",
710+
"pip",
711+
"install",
712+
"--python",
713+
python_path,
714+
"wagtail-font-awesome-svg",
715+
],
716+
check=True,
717+
capture_output=True,
718+
)
707719
except Exception as e:
708720
typer.echo(f"⚠️ bakerydemo install failed: {e}", err=True)
709721
else:
@@ -728,6 +740,8 @@ def _configure_bakerydemo(project_path: Path, name: str) -> None:
728740
content = settings_file.read_text()
729741

730742
bakerydemo_apps = (
743+
' "bakerydemo",\n'
744+
' "wagtailfontawesomesvg",\n'
731745
' "bakerydemo.base",\n'
732746
' "bakerydemo.blog",\n'
733747
' "bakerydemo.breads",\n'

0 commit comments

Comments
 (0)