1
django-admin-tools说,我们可以在儿童中使用HTML(或)Text。但它逃避了给定的HTML标签。所有的标签已经被显示为没有渲染的给定。Django django-admin-tools DashboardModule - HTML内容
django-admin-tools说,我们可以在儿童中使用HTML(或)Text。但它逃避了给定的HTML标签。所有的标签已经被显示为没有渲染的给定。Django django-admin-tools DashboardModule - HTML内容
编辑模板
admin_tools /仪表板/ module.html
并添加
{%autoescape关闭%} {%endautoescape %}
从文档:
pre_content
Text or HTML content to display above the module content. Default value: None.
content
The module text or HTML content. Default value: None.
post_content
Text or HTML content to display under the module content. Default value: None.
无论身在何处是整个文件没有指出该children
属性可以包含HTML英寸
该示例包含'children'属性,但问题是关于'pre_content'属性,这有点令人困惑。 – 2011-02-18 20:05:39
@Mike更新了问题 – 2011-02-19 05:16:23