fix: update existing default site in seed command #8
Reference in New Issue
Block a user
Delete Branch "fix/seed-default-site"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wagtail initialises the default site with hostname
localhost. The previousget_or_createon127.0.0.1left the localhost site intact (still pointing to the Welcome page), so browsers got the wrong root page.Fix: find and update the existing default site instead of hardcoding the hostname.