Skip to content

Commit

Permalink
adding load_dotenv() to properly load environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dpmacisaac committed Aug 5, 2024
1 parent 4249205 commit 1e1a73d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
#####
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1e1a73d

Please sign in to comment.