HomePhabricator

Use flask.config.from_file() to load config file

Description

Use flask.config.from_file() to load config file

This is new in Flask 2.0.0 (previously, there was only from_json()), and
seems nicer than reading the file manually. Note that it only reads
all-uppercase keys (silently ignoring the rest), so the oauth key has to
be renamed to OAUTH; local config files will need to be adjusted.

Details

Provenance
LucasWerkmeisterAuthored on Jul 17 2021, 10:56 AM
Parents
R2362:37766a8002c1: Merge pull request #73 from lucaswerkmeister/twn
Branches
Unknown
Tags
Unknown
ChangeId
None