我确实了解当 HTTP 请求到达时 Wagtail 的路由是如何工作的。
site
hostname
通过和匹配port
- 在 Wagtail CMS GUI 上找到特定的
page
via设置slug
serve()
该特定页面的
但是,上面的路由机制还没有涉及class
到models.py
。如果我在models.py
与 Wagtail 集成的 django 中有以下设置,
class BlogList(RoutablePageMixin, Page):
template = "Post_List.html"
intro = RichTextField(blank=True)
content_panels = Page.content_panels + [
FieldPanel("intro")
]
subpage_types = [
"BlogDetail",
]
parent_page_type = [
"HomePage",
]
我怎么知道这class BlogList
与page
Wagtail CMS GUI 上的哪个相关联?