Skip to content

Commit 66522cc

Browse files
aclark4lifeCopilot
andcommitted
fix: remove unused os import in wagtail_setup.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8a27cee commit 66522cc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/dbx_python_cli/templates/project_template/scripts/wagtail_setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Create Wagtail root page, home page, default site, and superuser if they don't exist.
33
Run with: python scripts/wagtail_setup.py
44
"""
5-
import os
5+
66
import sys
77

88
import django
@@ -24,7 +24,9 @@
2424
home = root.add_child(title="Home", slug="home", content_type=ct, locale=locale)
2525
print("✅ Wagtail root page and home page created.")
2626
if not Site.objects.exists():
27-
Site.objects.create(hostname="localhost", root_page=home, is_default_site=True)
27+
Site.objects.create(
28+
hostname="localhost", root_page=home, is_default_site=True
29+
)
2830
print("✅ Wagtail default site created.")
2931
else:
3032
print("ℹ️ Wagtail root page already exists, skipping.")

0 commit comments

Comments
 (0)