forked from orbit-oss/flask
Merge pull request #5140 from Jeroendevr/patch-1
This commit is contained in:
commit
ae07dead24
1 changed files with 2 additions and 2 deletions
|
|
@ -410,8 +410,8 @@ from a TOML file:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import toml
|
import tomllib
|
||||||
app.config.from_file("config.toml", load=toml.load)
|
app.config.from_file("config.toml", load=tomllib.load, text=False)
|
||||||
|
|
||||||
Or from a JSON file:
|
Or from a JSON file:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue