コード例 #1
0
ファイル: models.py プロジェクト: wastemaster/django-comments
from django.db import models
from django.conf import settings as settings
from comments.plugins import plugin_pool
from comments.settings import PLUGINS

for plugin in PLUGINS:
    plugin_pool.register(plugin)

コード例 #2
0
 def raises():
     """
     Raises exception
     """
     plugin_pool.register('comments.defaults.DjangoCommentPlugin')
     plugin_pool.register('comments.defaults.DjangoCommentPlugin')
コード例 #3
0
 def raises():
     """
     Raises exception
     """
     plugin_pool.register('django.contrib.comments.models.Comment')
コード例 #4
0
 def raises():
     """
     Raises exception
     """
     plugin_pool.register('foo.bar.baz')