forked from orbit-oss/flask
Config from Data Files to match from_file API
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.
This commit is contained in:
parent
55332be325
commit
0f477df86a
1 changed files with 2 additions and 2 deletions
|
|
@ -410,8 +410,8 @@ from a TOML file:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
import toml
|
||||
app.config.from_file("config.toml", load=toml.load)
|
||||
import tomllib
|
||||
app.config.from_file("config.toml", load=tomllib.load, text=False)
|
||||
|
||||
Or from a JSON file:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue