Compare commits
1 Commits
c47a62df5c
...
tests/e2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95abbdc0ac
|
@@ -116,15 +116,12 @@ class Command(BaseCommand):
|
|||||||
legal_index.add_child(instance=privacy)
|
legal_index.add_child(instance=privacy)
|
||||||
privacy.save_revision().publish()
|
privacy.save_revision().publish()
|
||||||
|
|
||||||
site, _ = Site.objects.get_or_create(
|
# Update the existing default site (whatever hostname Wagtail created it with)
|
||||||
hostname="127.0.0.1",
|
# rather than creating a new 127.0.0.1 entry that leaves localhost pointing
|
||||||
port=8000,
|
# to the Welcome page.
|
||||||
defaults={
|
site = Site.objects.filter(is_default_site=True).first()
|
||||||
"root_page": home,
|
if site is None:
|
||||||
"is_default_site": True,
|
site = Site(hostname="localhost", port=80)
|
||||||
"site_name": "No Hype AI",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
site.root_page = home
|
site.root_page = home
|
||||||
site.is_default_site = True
|
site.is_default_site = True
|
||||||
site.site_name = "No Hype AI"
|
site.site_name = "No Hype AI"
|
||||||
|
|||||||
Reference in New Issue
Block a user