update
This commit is contained in:
86
backEnd/home/management/commands/populate_home_banners.py
Normal file
86
backEnd/home/management/commands/populate_home_banners.py
Normal file
@@ -0,0 +1,86 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from home.models import HomeBanner
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Populate database with sample homepage banner data'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
self.stdout.write(self.style.SUCCESS('Starting to populate homepage banner data...'))
|
||||
|
||||
# Clear existing data
|
||||
HomeBanner.objects.all().delete()
|
||||
|
||||
# Create Homepage Banners
|
||||
banners_data = [
|
||||
{
|
||||
'icon': 'fa-solid fa-rocket',
|
||||
'badge': 'Enterprise Software Solutions',
|
||||
'heading': 'Transform Your Business with',
|
||||
'highlight': 'Enterprise-Grade Technology',
|
||||
'subheading': 'Scalable, Secure, and Compliant Software Solutions',
|
||||
'description': 'GNX Soft delivers cutting-edge enterprise software solutions for mission-critical industries. We empower organizations in Defense & Aerospace, Healthcare, Banking, and more with innovative, secure, and scalable platforms that drive digital transformation.',
|
||||
'button_text': 'Explore Our Solutions',
|
||||
'button_url': '/services',
|
||||
'display_order': 1,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'icon': 'fa-solid fa-shield-halved',
|
||||
'badge': 'Secure & Compliant',
|
||||
'heading': 'Defense-Grade Security for',
|
||||
'highlight': 'Mission-Critical Operations',
|
||||
'subheading': 'HIPAA, GDPR, and Industry Compliance Guaranteed',
|
||||
'description': 'Our enterprise solutions are built with security-first principles, ensuring HIPAA compliance for healthcare, GDPR adherence for EU operations, and defense-grade security for critical infrastructure. Trust GNX Soft for your most sensitive projects.',
|
||||
'button_text': 'View Case Studies',
|
||||
'button_url': '/case-studies',
|
||||
'display_order': 2,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'icon': 'fa-solid fa-cloud',
|
||||
'badge': 'Cloud-Native Architecture',
|
||||
'heading': 'Scalable Infrastructure for',
|
||||
'highlight': 'Global Enterprise Operations',
|
||||
'subheading': 'EU-Based Infrastructure with 99.9% Uptime SLA',
|
||||
'description': 'Deploy on our EU-based cloud infrastructure across Bulgaria, Germany, and Netherlands. Experience enterprise-grade scalability, reliability, and performance with 24/7 monitoring and support. Perfect for organizations requiring data sovereignty and regulatory compliance.',
|
||||
'button_text': 'Contact Sales',
|
||||
'button_url': '/contact-us',
|
||||
'display_order': 3,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'icon': 'fa-solid fa-code',
|
||||
'badge': 'Full-Stack Development',
|
||||
'heading': 'Expert Development Teams for',
|
||||
'highlight': 'Complex Enterprise Projects',
|
||||
'subheading': 'Java, Python, React, Angular, and Modern Tech Stack',
|
||||
'description': 'Our expert development teams specialize in enterprise software development using Java Spring Boot, Python FastAPI/Django, React, Angular, and modern cloud technologies. From microservices architecture to legacy system modernization, we deliver excellence.',
|
||||
'button_text': 'Learn More',
|
||||
'button_url': '/about',
|
||||
'display_order': 4,
|
||||
'is_active': True
|
||||
},
|
||||
{
|
||||
'icon': 'fa-solid fa-users',
|
||||
'badge': 'Trusted by Industry Leaders',
|
||||
'heading': 'Partner with GNX Soft for',
|
||||
'highlight': 'Digital Transformation Success',
|
||||
'subheading': '30+ Enterprise Clients | 8 Industry Verticals | 24/7 Support',
|
||||
'description': 'Join leading organizations across Defense & Aerospace, Healthcare & Medical, Banking & Finance, Telecommunications, Public Sector, E-commerce, Food & Beverages, and Oil & Energy. Experience the GNX Soft difference with dedicated enterprise support and proven methodologies.',
|
||||
'button_text': 'Get Started',
|
||||
'button_url': '/contact-us',
|
||||
'display_order': 5,
|
||||
'is_active': True
|
||||
}
|
||||
]
|
||||
|
||||
created_banners = []
|
||||
for banner_data in banners_data:
|
||||
banner = HomeBanner.objects.create(**banner_data)
|
||||
created_banners.append(banner)
|
||||
self.stdout.write(f'Created banner: {banner.heading} - {banner.highlight}')
|
||||
|
||||
self.stdout.write(self.style.SUCCESS('\nSuccessfully populated homepage banner data!'))
|
||||
self.stdout.write(f'Created {HomeBanner.objects.count()} homepage banners')
|
||||
|
||||
Reference in New Issue
Block a user