import os from pathlib import Path # Check current working directory print("Current working directory:", os.getcwd()) # Check if .env file exists in backend directory backend_env_path = Path("backend/.env") print(".env file exists in backend:", backend_env_path.exists()) if backend_env_path.exists(): print("Contents of backend/.env:") with open(backend_env_path) as f: print(f.read()) # Check environment variables print("\nDATABASE_URL environment variable:", os.environ.get('DATABASE_URL', 'Not set')) # Now try to load the settings from src.config import settings print("\nSettings DATABASE_URL:", settings.DATABASE_URL)