def _filter_configured_apps(module):
 app_found = True
 if (hasattr(settings, 'LETTUCE_APPS') and isinstance(settings.LETTUCE_APPS, (list, tuple))):
  app_found = False
  for appname in settings.LETTUCE_APPS:
   if module.__name__.startswith(appname):
    app_found = True
 return app_found

def _filter_configured_apps ( module ) : app_found = True if ( hasattr ( settings , 'LETTUCE_APPS' ) and isinstance ( settings . LETTUCE_APPS , ( list , tuple ) ) ) : app_found = False for appname in settings . LETTUCE_APPS : if module . __name__ . startswith ( appname ) : app_found = True return app_found
returns only those apps that are in django .