code: def set_settings_env(executable_folder=None):
          
          executable_folder = executable_folder or get_executable_folder()
          # print "!!!!!!!!!!!!!! executable:", executable_folder
          if os.path.exists(os.path.join(executable_folder, "local/total_settings.py")):
              print("Using total settings")
              os.chdir(executable_folder)
              os.environ["DJANGO_SETTINGS_MODULE"] = "local.total_settings"
              os.environ["STATIC_ROOT"] = os.path.join(executable_folder, "static")
              os.environ["MEDIA_ROOT"] = os.path.join(executable_folder, "media")
          else:
              os.environ.setdefault('ROOT_DIR', get_folder(get_inspection_frame(2)))
              os.environ["DJANGO_SETTINGS_MODULE"] = "djangoautoconf.base_settings"
docs: Add all application folders
          :param executable_folder: the folder that contains local and external_app_repos
          :return: