From 49352cd0b246c895aa3ddfecb97c0a2192fbe72c Mon Sep 17 00:00:00 2001 From: Brosef Date: Mon, 23 Feb 2026 13:49:09 +0000 Subject: [PATCH] Added .env loading --- backend.py | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/backend.py b/backend.py index 67e45b2..892c0f9 100644 --- a/backend.py +++ b/backend.py @@ -3,10 +3,13 @@ Imports all required blueprints and initalises the app. Runs in debug mode if ran directly. """ +import dotenv import flask from blueprints.static import staticBP +dotenv.load_dotenv() + app = flask.Flask(__name__, static_folder='./www/') app.register_blueprint(staticBP) diff --git a/requirements.txt b/requirements.txt index 2077213..ad682d4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ +dotenv Flask \ No newline at end of file