Spaces:
Sleeping
Sleeping
Download debug_settings.py from AlishbaRehman/fullbackend: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/AlishbaRehman/fullbackend/resolve/main/debug_settings.py
- Command line
-
hf download hf://spaces/AlishbaRehman/fullbackend/debug_settings.py
-
curl -L -o debug_settings.py https://huggingface.co/spaces/AlishbaRehman/fullbackend/resolve/main/debug_settings.py
646 Bytes
| 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) |