一个为Django评论应用贡献Akismet和关键词阻止的Django应用。
项目描述
此Django应用程序为Django的评论应用贡献了一个审查类,它提供
检查传入的评论与Akismet垃圾邮件数据库,直接阻止它们或将它们添加到审查队列。
检查传入的评论与预定义的关键词,直接阻止它们或将它们添加到审查队列。这些关键词可以是简单的字符串或强大的正则表达式。
文档在线
http://docs.mahner.org/django-comments-spamfighter/
快速安装
以下是针对熟悉评论审查的用户提供的快速安装指南
from comments_spamfighter.moderation import SpamFighterModerator class EntryModerator(SpamFighterModerator): # Regular options by django's contributed CommentModerator auto_moderate_field = 'created' email_notification = True # Spam fighter options # Check with Akismet for spam akismet_check = False # If Akismet marks this message as spam, delete it instantly (False) or # add it the comment the moderation queue (True). Default is True. akismet_check_moderate = True # Do a keyword check keyword_check = True # If a keyword is found, delete it instantly (False) or add the comment to # the moderation queue (True). Default is False. keyword_check_moderate = False moderator.register(Entry, EntryModerator)