def autostartup():
 for app in settings.INSTALLED_APPS:
  try:
   mod = import_module((app + '.startup'))
  except ImportError:
   continue
  if hasattr(mod, 'run'):
   mod.run()

def autostartup ( ) : for app in settings . INSTALLED_APPS : try : mod = import_module ( ( app + '.startup' ) ) except ImportError : continue if hasattr ( mod , 'run' ) : mod . run ( )
execute app .