Skip to content

Commit

Permalink
refactor: Comment out environment file loading checks for easier loca…
Browse files Browse the repository at this point in the history
…l development
  • Loading branch information
AhmedNassar7 committed Dec 21, 2024
1 parent 715513a commit 23159cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions egypt_metro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23159cf

Please sign in to comment.