V
To switch Flask to the development environment and enable debug mode, set FLASK_ENV:
$ export FLASK_ENV=development - (это)
$ flask run
Size: a a a
V
GB
GB
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}GB
def create_app(config_name='default'):
app = Flask(__name__)
app.config.from_object(config[config_name])h
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}h
h
h
h
V

V
h
h
V
h
h
V
h

h
h