在主 django-admin 站点中包含 satchmo-livesettings
我计划在我的 django 应用程序中使用 sachmo-livesettings 模块(不使用 satchmo 或与 satchmo 相关)。在 satchmo 商店中,实时设置在 django-admin 主站点上可见。当将 livesettings 添加到我的应用程序时,虽然我可以使用专用 URL(例如 ../settings)直接访问它们,但我无法使它们在右侧菜单中的主 django 管理站点上可见。您对如何在管理网站上包含实时设置概述有什么想法吗?
关于如何使用 livesettings 的文档并不多,您是否有关于 satchmo-livesettings 和 django-admin 的文档的链接。我对如何在右侧添加内容特别感兴趣(通常显示更改模型对象的历史记录)。
谢谢
I plan to use the sachmo-livesettings module in my django application (not using or related to satchmo). In the satchmo store the livesettings are visible on the main django-admin site. When adding livesettings to my app, though I can access them directly using a dedicated url (e.g. ../settings) I don't manage to make them visible on the main django admin site in the menu on the right side. Do you have any ideas how to include a livesettings overview on the admin site?
There is not much documentation on how to use livesettings, do you have any links to documents about satchmo-livesettings and django-admin. I'm particularly interested on how to add things on the right side (where normally the history of changed model objects is displayed).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太熟悉 satchmo 的具体位,但通常在 Django 中处理此类事情的方式是 覆盖管理模板并创建您自己的/admin/ urls/views。
I'm not too familiar with the satchmo specific bits, but generally the way you handle this kind of thing in Django is by overriding admin templates and creating your own /admin/ urls/views.