GNXSOFT.COM

This commit is contained in:
Iliyan Angelov
2025-09-26 00:15:37 +03:00
commit fe26b7cca4
16323 changed files with 2011881 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/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'}")