TypePad应用程序的仲裁面板。

typepadapp-moderation的Python项目详细描述


获取仲裁应用程序:

pip -E $VIRTUAL_ENV install -e git://github.com/sixapart/typepadapp-moderation.git#egg=typepadapp_moderation

在url.py中添加以下内容:

(r’^moderation’, include(‘moderation.urls’)),

并在local_settings.py模块中包含以下内容:

USE_MODERATION = True

if USE_MODERATION:

from settings import INSTALLED_APPS, TEMPLATE_CONTEXT_PROCESSORS

## This is a location relative to MEDIA_ROOT and MEDIA_URL ## Make sure your web server has rights to create files there. UPLOAD_PATH = ‘uploads’

INSTALLED_APPS = (‘moderation’,) + INSTALLED_APPS

TEMPLATE_CONTEXT_PROCESSORS += (‘moderation.context_processors.globals’, )

## Customize this setting if you wish to alter the options shown ## when flagging a published post or comment: # REPORT_OPTIONS = [ # [“Option label”], # [“Admin: Suppress this post immediately”, 1] # ]

## Assign a Typepad Antispam API key here to make use of antispam ## filtering. # TYPEPAD_ANTISPAM_API_KEY = ‘antispam-api-key’

## For selective moderation; enabling this feature will default ## moderation so that it is only done for specific users. # MODERATE_BY_USER = True

## For selective moderation; enabling this feature will default ## moderation so that it is only done for these specific post types. ## Types are: post, photo, link, audio, video, comment # MODERATE_TYPES = (‘photo’,)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字符串Java字母替换无效   java Spring Roo JPA MS SQL Server无法打开JPA EntityManager组织。冬眠例外GenericJDBCException:无法打开连接   在scala中使用JavaWS对大型数据文件进行java流式处理   Java编译器是否将字节和短字符识别为文本?   java无法查找符号错误,空指针   mongodb在Java中重用数据库连接   java将多个StringArray从字符串文件获取到活动中   java是一个变量,它只保存最后一次鼠标单击的坐标   c#尺寸有限;添加、删除和洗牌   java如何在Android中显示来自资产文件夹的文本文件中的文本   Android应用程序中的java Tensorflow Lite自定义对象检测模型错误   java如何在foreachloop中使用scanner将来自命令行的输入存储到数组中   java如何定义一个好的存储库接口   Android中的java解析动态json对象