Commits

takanao ENDOH committed 0cfb47e

Fixed ImportError.

Comments (0)

Files changed (1)

monologista/plugins/views.py

 from monologista import settings
 from monologista.miniblog.models import *
 from monologista.plugins.models import TinyUrl, AccountPlugin, MonologyPlugin, Tag
-from monologista.utils import base62, mecab
+from monologista.utils import base62
+
+if 'monologista.plugins.views.AutoTagPlugin' in settings.MINIBLOG_PLUGIN:
+    from monologista.utils import mecab
 
 def abstract():
     caller = inspect.getouterframes(inspect.currentframe())[1][3]