Skip to content
Myr

Config from Data Files to match from_file API

Before adoption: this commit came in with the history the project adopted, so no landing records it.

In the API docs using a TOML file to load config is referred to as https://flask.palletsprojects.com/en/2.3.x/api/#flask.Config.from_file To keep docs consistent a small change to the config docs.

authored by Jeroendevr · committed by GitHub · parent 55332be · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/config.rst+2 added-2 removed
408 unmodified lines
409from a TOML file:410411.. code-block:: python412413 import toml414 app.config.from_file("config.toml", load=toml.load)413 import tomllib414 app.config.from_file("config.toml", load=tomllib.load, text=False)415416Or from a JSON file:417418.. code-block:: python
303 unmodified lines