django-fluent-comments的审核插件
项目描述
django-comments-moderation
这是对django-fluent-comments的补充。
此模块注册来自评论的所有电子邮件,并允许设置针对它们的审核规则(黑名单/白名单)。
安装
pip install django-comments-moderation
或者
pip install -e git+https://github.com/PetrDlouhy/django-comments-moderation.git#egg=django-comments-moderation
将 comments_moderation 添加到您的 INSTALLED_APPS
INSTALLED_APPS = (
...
'comments_moderation',
...
)
注册评论审核员 - 在 admin.py 中添加以下行
from comments_moderation import filtered_moderator
filtered_moderator.register(CommentedObject)
您可以从两种模式中选择新的用户的审核模式 - 'approve' 和 'moderate'。如果您想对所有新用户的评论进行审核,请设置
COMMENTS_MODERATION_MODE = 'moderate'
迁移您的模型
./manage.py migrate comments_moderation
现在您应该在您的管理界面中看到新的应用 comments_moderation 和模型 Email filters。
项目详情
下载文件
下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源分布
django-comments-moderation-1.0.tar.gz (17.6 kB 查看哈希值)
关闭
django-comments-moderation-1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 560dd3c15b5e468afb251352c1f2fcada2c31758ac8cef24fda8daf3f6ea8887 |
|
MD5 | de1b9e94d36a1f2995fd5cd8c69fb811 |
|
BLAKE2b-256 | b7175cc1ebaf05293b05cf4b9d2106b4fe0074f3329a08d548d0035696892533 |