def ready(self): if not settings.DEBUG: raise ImproperlyConfigured( "Do not use dummy plugin on production!") from getpaid.registry import registry registry.register(self.module)
def ready(self): from getpaid.registry import registry registry.register(self.module)
def setUpClass(cls): super().setUpClass() registry.register(Plugin)