I followed Official Wagtail Docs to integrate freshly installed Wagtail into existing Django project.
I added customized HomePage
class in existing Django's models.py
.
# myDjangoProject/models.py
class HomePage(Page):
template = "homepage.html"
content = RichTextField()
content_panels = Page.content_panels + [
FieldPanel("content")
]
Q1: In above screenshot, Why system default page
Welcome to Wagtail
is of Page
TYPE, while newly created New Page
is of Home page
TYPE automatically ?
Q2: In above screenshot, Why Newly-created child page under system default page
Welcome to Wagtail
is of Home page
surprisingly without any manual configuration ?
Q3: In above screenshot, why all newly-created pages automatically (no manual configuration required) inherited from my customized
HomePage
class in MyDjangoProject/models.py
? How is this reflected on source code level ?