changed app.py and docs so that the entries override system env vars. fixes #52

This commit is contained in:
Zev B Averbach
2020-12-05 14:18:40 +01:00
parent 6ec8c6abd6
commit 2845e3db1b
3 changed files with 27 additions and 1 deletions

2
app.py
View File

@@ -22,7 +22,7 @@ def snake_case_keys(somedict):
app = Flask(__name__)
fake = Faker()
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
load_dotenv(dotenv_path, override=True)
@app.route('/')
def index():