Created
May 22, 2021 15:50
-
-
Save anandtripathi5/259e91c80a3ba0d48c74c90615b8566f to your computer and use it in GitHub Desktop.
Flask import configuration from toml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toml | |
from flask import Flask | |
app = Flask('__name__') | |
app.config.from_file('config.toml', toml.load) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment