def get_comment_app():
 comments_app = get_comment_app_name()
 if (comments_app not in settings.INSTALLED_APPS):
  raise ImproperlyConfigured(('The COMMENTS_APP (%r) must be in INSTALLED_APPS' % settings.COMMENTS_APP))
 try:
  package = import_module(comments_app)
 except ImportError:
  raise ImproperlyConfigured('The COMMENTS_APP setting refers to a non-existing package.')
 return package

def get_comment_app ( ) : comments_app = get_comment_app_name ( ) if ( comments_app not in settings . INSTALLED_APPS ) : raise ImproperlyConfigured ( ( 'The COMMENTS_APP (%r) must be in INSTALLED_APPS' % settings . COMMENTS_APP ) ) try : package = import_module ( comments_app ) except ImportError : raise ImproperlyConfigured ( 'The COMMENTS_APP setting refers to a non-existing package.' ) return package
get the comment app as defined in the settings .