iamge path
This commit is contained in:
@@ -544,10 +544,9 @@ def process_image_generation_queue(self, image_ids: list, account_id: int = None
|
||||
|
||||
# Try frontend/public/images/ai-images/ first (web-accessible)
|
||||
try:
|
||||
from django.conf import settings
|
||||
base_dir = Path(settings.BASE_DIR) if hasattr(settings, 'BASE_DIR') else Path(__file__).resolve().parent.parent.parent
|
||||
# Navigate to frontend/public/images/ai-images/
|
||||
images_dir = str(base_dir / 'frontend' / 'public' / 'images' / 'ai-images')
|
||||
# Use absolute path: /data/app/igny8/frontend/public/images/ai-images/
|
||||
# This matches the structure where frontend is at project root level
|
||||
images_dir = '/data/app/igny8/frontend/public/images/ai-images'
|
||||
os.makedirs(images_dir, exist_ok=True)
|
||||
# Test write access
|
||||
test_file = os.path.join(images_dir, '.write_test')
|
||||
|
||||
Reference in New Issue
Block a user