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.")