<s> def get_widgypage_model ( ) : <EOL> from django . conf import settings <EOL> from django . apps import apps <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> try : <EOL> app_label , model_name = getattr ( settings , '<STR_LIT>' , '<STR_LIT>' ) . split ( '<STR_LIT:.>' ) <EOL> except ValueError : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" ) <EOL> model = apps . get_model ( app_label , model_name ) <EOL> if model is None : <EOL> raise ImproperlyConfigured ( "<STR_LIT>" % settings . WIDGY_MEZZANINE_PAGE_MODEL ) <EOL> return model </s>
