<s> from __future__ import absolute_import , unicode_literals <EOL> from django . apps import AppConfig , apps <EOL> from django . conf import settings <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> class WagtailAPIAppConfig ( AppConfig ) : <EOL> name = '<STR_LIT>' <EOL> label = '<STR_LIT>' <EOL> verbose_name = "<STR_LIT>" <EOL> def ready ( self ) : <EOL> if getattr ( settings , '<STR_LIT>' , False ) : <EOL> if apps . is_installed ( '<STR_LIT>' ) : <EOL> from wagtail . api . v2 . signal_handlers import register_signal_handlers as register_signal_handlers_v2 <EOL> register_signal_handlers_v2 ( ) <EOL> else : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" ) </s>
