向django cms结构板添加注释。
djangocms-inline-comment的Python项目详细描述
django cms inline comment是django CMS的插件,允许您向结构板添加注释,仅对编辑器可见。您可以将其他插件嵌套在内联注释中,从而使它们在已发布的页面上不可见。
支持django>;=1.8和django cms>;=3.3。https://github.com/divio/djangocms-text-ckeditor是一项要求。
(如果您正在寻找面向公众的注释插件,请查看https://github.com/Nekmo/djangocms-comments、https://github.com/aldryn/aldryn-disqus或https://github.com/mishbahr/djangocms-fbcomments。)
安装
- 运行pip install djangocms-inline-comment
- 将'djangocms_text_ckeditor' and 'djangocms_inline_comment'添加到INSTALLED_APPS
- 运行python manage.py migrate djangocms_inline_comment
运行测试
您可以执行以下操作来运行测试:
virtualenv env source env/bin/activate pip install -r requirements-test.txt python setup.py test