mirror of https://github.com/pallets/flask.git
Merge pull request #5140 from Jeroendevr/patch-1
This commit is contained in:
commit
ae07dead24
|
@ -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…
Reference in New Issue