#!/usr/bin/env python3
import os
import sys
import django

# Add the backend directory to Python path
sys.path.append('/home/gnx/Desktop/gnx-react/backend')

# Set up Django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gnx.settings')
django.setup()

from about.models import AboutService

# Update the service image
service = AboutService.objects.get(id=1)
service.image = 'about/services/service-image.jpg'
service.save()

print(f"Updated service image: {service.image}")
print(f"Service image URL: {service.image.url if service.image else 'None'}")
