fix: resolve static files and import issues
- Fix static files not loading due to volume mount conflict - Remove problematic volume mount from docker-compose.yml - Add __init__.py files to make Python packages - Fix all import statements to use relative imports - Update start.sh to use correct module name - Update config.py with correct default paths and values - Ensure all environment variables are properly loaded from .env file
This commit is contained in:
@@ -11,9 +11,9 @@ from fastapi import FastAPI, Request, HTTPException
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.templating import Jinja2Templates
|
||||
|
||||
from app.core.config import DEBUG_MODE, SNAP_DIR, STATIC_DIR, APP_PORT
|
||||
from app.api.v1.router import api_router, pages_router
|
||||
from app.core.logger import app_logger
|
||||
from core.config import DEBUG_MODE, SNAP_DIR, STATIC_DIR, APP_PORT
|
||||
from api.v1.router import api_router, pages_router
|
||||
from core.logger import app_logger
|
||||
|
||||
# Инициализация FastAPI
|
||||
app = FastAPI(
|
||||
|
||||
Reference in New Issue
Block a user