def _apps():
 def _in_exclusions(module_name):
  settings_exclusions = getattr(settings, 'RAPIDSMS_HANDLERS_EXCLUDE_APPS', [])
  return ((module_name == 'rapidsms.contrib.handlers') or module_name.startswith('django.contrib.') or (module_name in settings_exclusions))
 return [module_name for module_name in settings.INSTALLED_APPS if (not _in_exclusions(module_name))]

def _apps ( ) : def _in_exclusions ( module_name ) : settings_exclusions = getattr ( settings , 'RAPIDSMS_HANDLERS_EXCLUDE_APPS' , [ ] ) return ( ( module_name == 'rapidsms.contrib.handlers' ) or module_name . startswith ( 'django.contrib.' ) or ( module_name in settings_exclusions ) ) return [ module_name for module_name in settings . INSTALLED_APPS if ( not _in_exclusions ( module_name ) ) ]
return a list of the apps which may contain handlers .