我无法让Django接受在我的博客文章中嵌入视频的夹层框架。我尝试使用rich text editor
的video
标记,尝试编辑html
代码并插入YouTube提供的iframe
,但没有成功。一旦我点击save,Mezzanine就会立即删除代码,就像以前从未有过的代码一样。在
我在谷歌上搜索了很多东西,偶然发现this article from the documentation上面写着:
Setting the filtering level to no filtering, will disable all filtering, and allow any code to be entered by staff members, including script tags.
Choices: High: 1, Low (allows video, iframe, Flash, etc): 2, No filtering: 3
然后我继续更新了我的settings.py
,并添加了变量RICHTEXT_FILTER_LEVEL=3
(无过滤)。重新启动Apache
,但没有成功。在
你们是我最后的选择。在
它实际上需要在管理员中更改。登录到您的管理员,然后在左上角悬停在'网站',然后单击'设置'。向下滚动,您将看到一个名为“富文本过滤器级别”的设置。将此设置更改为“低”,然后保存。你现在应该可以嵌入你的视频了。在
相关问题 更多 >
编程相关推荐