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:
Jeroendevr 2023-05-24 11:13:36 +02:00 committed by GitHub
parent 55332be325
commit 0f477df86a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: