def get_apps():
 global _app_list
 global _loaded
 if (not _loaded):
  _loaded = True
  for app_name in settings.INSTALLED_APPS:
   try:
    load_app(app_name)
   except Exception as e:
    _app_errors[app_name] = e
 return _app_list

def get_apps ( ) : global _app_list global _loaded if ( not _loaded ) : _loaded = True for app_name in settings . INSTALLED_APPS : try : load_app ( app_name ) except Exception as e : _app_errors [ app_name ] = e return _app_list
import django apps .