跳转到主要内容

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 查看哈希值)

上传时间 源代码

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面