Flask Json Config File at margarethzhou blog

Flask Json Config File. Import json second open the file to read and store the json in some variable like below:. There are different settings you might want to change depending on.

Flasks configuration file
from iamdhage.hashnode.dev

Works exactly like a dict but.applications need some kind of configuration. Updates the values in the config from a json file.

Flasks configuration file

Flask Json Config File App.config['image_store_type'] = 'fs' app.config['image_store_path'] =. first import flask json library:config.from_json(filename, silent=false) [source] ¶. Updates the values in the config from a json file.