Automated Action 9586f0c506 Fix Pydantic error by moving DB_DIR outside of Settings class
- Moved DB_DIR Path definition outside Settings class to fix Pydantic 2.x annotation error
- Updated path to use project-specific path rather than /app
- Added start.py script to validate app loading

generated with BackendIM... (backend.im)
2025-05-13 23:34:58 +00:00

14 lines
396 B
Python

import os
import sys
from pathlib import Path
# Add the project root to the Python path
BASE_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, str(BASE_DIR))
# Import the app from main.py to check if it loads correctly
from main import app
print("App loaded successfully!")
print(f"App name: {app.title}")
print("If you can see this message, the error has been fixed.")