code: def load_settings(self):
          
          mname = 'loaded_module'
          if six.PY2:
              import imp
              return imp.load_source(mname, self.settings_filename)
          else:
              import importlib.machinery
              loader = importlib.machinery.SourceFileLoader(mname, self.settings_filename)
          return loader.load_module(mname)
docs: Load settings module from the model_dir directory.