【问题标题】:Django mezzanine - set url for a "blog page" as homepage ? How?Django mezzanine - 将“博客页面”的网址设置为主页?如何?
【发布时间】:2026-02-05 20:10:01
【问题描述】:

Django 夹层:

我的夹层博客中有一些页面和帖子。我创建了一个名为 "test" 的页面,它的 url 是 localhost:8000/test 。我可以将该“博客页面”“测试”作为主页吗?我的意思是,在 localhost:8000,它应该显示 localhost:8000/test 的内容,而不需要从 home 重定向到 /test。在管理员中,我无法将该页面的网址保留为主页。

【问题讨论】:

    标签: python django


    【解决方案1】:

    文档中的常见问题解答中介绍了将主页设为可编辑的页面对象:

    http://mezzanine.jupo.org/docs/frequently-asked-questions.html#why-isn-t-the-homepage-a-page-object-i-can-edit-via-the-admin

    【讨论】: