def _filter_configured_avoids(module):
 run_app = False
 if (hasattr(settings, 'LETTUCE_AVOID_APPS') and isinstance(settings.LETTUCE_AVOID_APPS, (list, tuple))):
  for appname in settings.LETTUCE_AVOID_APPS:
   if module.__name__.startswith(appname):
    run_app = True
 return (not run_app)

def _filter_configured_avoids ( module ) : run_app = False if ( hasattr ( settings , 'LETTUCE_AVOID_APPS' ) and isinstance ( settings . LETTUCE_AVOID_APPS , ( list , tuple ) ) ) : for appname in settings . LETTUCE_AVOID_APPS : if module . __name__ . startswith ( appname ) : run_app = True return ( not run_app )
returns apps that are not within django .