【发布时间】:2018-04-12 11:50:35
【问题描述】:
我创建了名为 testTemplate 的 html 模板,该模板已添加到 CMS_TEMPLATES:
CMS_TEMPLATES = (
## Customize this
('fullwidth.html', 'Fullwidth'),
('sidebar_left.html', 'Sidebar Left'),
('sidebar_right.html', 'Sidebar Right'),
('testTemplate.html', 'testTemplate')
)
然后在fullwidth.html 文件中,我将{% extends "base.html" %} 更改为{% extends "testTemplate.html" %}。在testTemplate.html 文件中,我可以找到很少的{% placehoders %}。现在,如果我想去django-cms 向占位符添加内容,我的 cms-admin 看起来不正确。 cms admin 的布局看起来像模板元素。如何将cms-admin 模板和我的站点模板分开以使其正常工作?
【问题讨论】:
标签: html django templates content-management-system