From 1e1a73d10b66a4720ebd1e321a049d96cd93a351 Mon Sep 17 00:00:00 2001 From: Dominic MacIsaac Date: Mon, 5 Aug 2024 12:32:34 -0700 Subject: [PATCH] adding load_dotenv() to properly load environment variables --- config.template.py | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/config.template.py b/config.template.py index 400e51cd..b410ae73 100644 --- a/config.template.py +++ b/config.template.py @@ -8,6 +8,9 @@ # Config - defines import os +# loads environment variables from a .env file into os.environ +from dotenv import load_dotenv +load_dotenv() class Config(object): ##### diff --git a/requirements.txt b/requirements.txt index 1f752a7f..4805594a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ requests==2.32.0 tornado==6.3.3 urllib3==1.26.18 docker==5.0.3 +python-dotenv==1.0.1