File size: 646 Bytes
2e76a54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)