I am building a flask web app and I want to store some parameters that would be able to be changed in an admin interface.
I was wondering how to store these parameters. I first thought about using a database, but each parameters may be different so I couldn't find a table scheme that would match my problem. I also thought about using a text a file, but I don't know which format would be the best.
What can you suggest me to store these parameters ?
CodePudding user response:
You could save them in json format, many databases support saving a json inside a field, alternatively you can save it in text format and then load it in a json object.