From 23159cf748340653d0acfde9a616685345e89ac0 Mon Sep 17 00:00:00 2001 From: Ahmed Nassar Date: Sat, 21 Dec 2024 16:14:32 +0200 Subject: [PATCH] refactor: Comment out environment file loading checks for easier local development --- egypt_metro/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/egypt_metro/settings.py b/egypt_metro/settings.py index 2c32a1f..d9f3482 100644 --- a/egypt_metro/settings.py +++ b/egypt_metro/settings.py @@ -28,10 +28,10 @@ load_dotenv(dotenv_path) # Check if the .env file exists and load it -if dotenv_path.is_file(): - load_dotenv(dotenv_path) -else: - raise FileNotFoundError(f"Environment file not found: {dotenv_path}") +# if dotenv_path.is_file(): +# load_dotenv(dotenv_path) +# else: +# raise FileNotFoundError(f"Environment file not found: {dotenv_path}") # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.getenv("SECRET_KEY") # Secret key for Django