¡Esta es una revisión vieja del documento!
import flask class MyFlask(flask.Flask): @property def static_folder(self): if self.config.get('STATIC_FOLDER') is not None: return os.path.join(self.root_path, self.config.get('STATIC_FOLDER')) @static_folder.setter def static_folder(self, value): self.config.get('STATIC_FOLDER') = value
import warnings from exceptions import Warning warnings.simplefilter('ignore', Warning)