@classmethod<EOL><INDENT>def get_default_plugin(cls):<DEDENT>
from importlib import import_module<EOL>from django.conf import settings<EOL>default_plugin = getattr(settings, '<STR_LIT>', "<STR_LIT>")<EOL>if default_plugin not in cls.default_plugins:<EOL><INDENT>logger.info("<STR_LIT>", default_plugin)<EOL>path = default_plugin.split('<STR_LIT:.>')<EOL>plugin_path = '<STR_LIT:.>'.join(path[:-<NUM_LIT:1>])<EOL>plugin_name = path[-<NUM_LIT:1>]<EOL>DefaultPlugin = getattr(import_module(plugin_path), plugin_name)<EOL>cls.default_plugins[default_plugin] = DefaultPlugin()<EOL><DEDENT>return cls.default_plugins[default_plugin]<EOL>
Return a default plugin.