示例#1
0
    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)
示例#2
0
    def ready(self):
        from getpaid.registry import registry

        registry.register(self.module)
示例#3
0
 def setUpClass(cls):
     super().setUpClass()
     registry.register(Plugin)