code: def search_project_root():
          
  
          while True:
  
              current = os.getcwd()
  
              if pathlib.Path("Miragefile.py").is_file() or pathlib.Path("Miragefile").is_file():
                  return current
              elif os.getcwd() == "/":
                  raise FileNotFoundError
              else:
                  os.chdir("../")
docs: Search your Django project root.
  
          returns:
              - path:string  Django project root path