windows env vars are uppercase

This commit is contained in:
David Lord 2022-03-25 12:05:07 -07:00
parent 4eb5e9455b
commit e75d575361
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 24 additions and 9 deletions

View file

@ -594,9 +594,12 @@ exist on the parent dict will be initialized to an empty dict.
app.config["MYAPI"]["credentials"]["username"] # Is "user123"
For even more config loading features, including merging, try a
dedicated library such as Dynaconf_, which includes integration with
Flask.
On Windows, environment variable keys are always uppercase, therefore
the above example would end up as ``MYAPI__CREDENTIALS__USERNAME``.
For even more config loading features, including merging and
case-insensitive Windows support, try a dedicated library such as
Dynaconf_, which includes integration with Flask.
.. _Dynaconf: https://www.dynaconf.com/