This commit is contained in:
Iliyan Angelov
2025-11-24 03:52:08 +02:00
parent dfcaebaf8c
commit 366f28677a
18241 changed files with 865352 additions and 567 deletions

View File

View File

@@ -0,0 +1,437 @@
"""
Management command to import enterprise sample data for services
with images downloaded from Unsplash.
"""
import urllib.request
import urllib.parse
import json
from io import BytesIO
from django.core.management.base import BaseCommand
from django.core.files.base import ContentFile
from django.db import transaction
from services.models import Service, ServiceCategory, ServiceFeature, ServiceExpertise
class Command(BaseCommand):
help = 'Import enterprise sample data for services with images from Unsplash'
def add_arguments(self, parser):
parser.add_argument(
'--unsplash-key',
type=str,
help='Unsplash API access key (optional, uses Unsplash Source API if not provided)',
)
parser.add_argument(
'--width',
type=int,
default=1200,
help='Image width in pixels (default: 1200)',
)
parser.add_argument(
'--height',
type=int,
default=800,
help='Image height in pixels (default: 800)',
)
parser.add_argument(
'--update-existing',
action='store_true',
help='Update existing services instead of skipping them',
)
def download_image_from_unsplash(self, keyword, width=1200, height=800, api_key=None):
"""
Download an image from Unsplash based on keyword.
Args:
keyword: Search keyword for the image
width: Image width in pixels
height: Image height in pixels
api_key: Optional Unsplash API access key
Returns:
BytesIO object containing the image data, or None if download fails
"""
try:
if api_key:
# Use Unsplash API (requires API key)
url = "https://api.unsplash.com/photos/random"
params = {
'query': keyword,
'orientation': 'landscape',
'w': width,
'h': height,
'client_id': api_key
}
query_string = urllib.parse.urlencode(params)
full_url = f"{url}?{query_string}"
req = urllib.request.Request(full_url)
with urllib.request.urlopen(req, timeout=30) as response:
data = json.loads(response.read().decode())
image_url = data['urls']['regular']
else:
# Use Unsplash's direct image service (no key required)
# Using a curated collection of enterprise/business images
# For better results with specific keywords, use --unsplash-key option
# Using placeholder service that provides high-quality images
image_url = f"https://images.unsplash.com/photo-1552664730-d307ca884978?w={width}&h={height}&fit=crop"
# Download the actual image
req = urllib.request.Request(image_url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36')
with urllib.request.urlopen(req, timeout=30) as img_response:
image_data = BytesIO(img_response.read())
image_data.seek(0)
return image_data
except Exception as e:
self.stdout.write(
self.style.WARNING(f'Failed to download image for "{keyword}": {str(e)}')
)
return None
def handle(self, *args, **options):
unsplash_key = options.get('unsplash_key')
width = options.get('width', 1200)
height = options.get('height', 800)
update_existing = options.get('update_existing', False)
self.stdout.write(self.style.SUCCESS('Starting enterprise data import...'))
with transaction.atomic():
# Create or get categories
categories = {}
category_data = [
{
'slug': 'web-development',
'name': 'Web Development',
'description': 'Custom web applications and enterprise websites',
'display_order': 1,
},
{
'slug': 'mobile-development',
'name': 'Mobile Development',
'description': 'Native and cross-platform mobile applications',
'display_order': 2,
},
{
'slug': 'api-development',
'name': 'API Development',
'description': 'RESTful APIs and microservices architecture',
'display_order': 3,
},
{
'slug': 'cloud-services',
'name': 'Cloud Services',
'description': 'Cloud migration and infrastructure services',
'display_order': 4,
},
{
'slug': 'enterprise-solutions',
'name': 'Enterprise Solutions',
'description': 'Enterprise-grade software solutions',
'display_order': 5,
},
]
for cat_data in category_data:
category, created = ServiceCategory.objects.get_or_create(
slug=cat_data['slug'],
defaults=cat_data
)
categories[cat_data['slug']] = category
if created:
self.stdout.write(
self.style.SUCCESS(f'Created category: {category.name}')
)
# Enterprise services data
services_data = [
{
'title': 'Enterprise Web Application Development',
'description': 'Build powerful, scalable enterprise web applications tailored to your business needs. Our expert developers use modern frameworks and technologies to create solutions that drive growth, efficiency, and competitive advantage. We deliver robust applications that handle high traffic, complex business logic, and integrate seamlessly with your existing systems.',
'short_description': 'Scalable enterprise web applications built with cutting-edge technologies for optimal performance and reliability.',
'slug': 'enterprise-web-application-development',
'icon': 'code',
'price': '25000.00',
'category_slug': 'web-development',
'duration': '12-24 weeks',
'deliverables': 'Enterprise Web Application, Admin Dashboard, User Management System, Role-Based Access Control, Database Design & Optimization, API Integration, Third-party Service Integration, Automated Testing Suite, CI/CD Pipeline, Documentation, Training & Support',
'technologies': 'React, Next.js, TypeScript, Node.js, PostgreSQL, Redis, AWS, Docker, Kubernetes, GraphQL, Microservices Architecture',
'process_steps': 'Requirements Analysis & Planning, System Architecture Design, Development Sprint Planning, Agile Development, Code Review & Quality Assurance, Testing & QA, Deployment & DevOps, Training & Knowledge Transfer, Ongoing Support',
'features_description': 'Our enterprise web applications come with advanced features including real-time collaboration, advanced analytics, comprehensive reporting, automated workflows, and seamless third-party integrations.',
'deliverables_description': 'You will receive a fully functional enterprise web application with comprehensive documentation, deployment scripts, testing suite, and ongoing support for maintenance and updates.',
'process_description': 'We follow an agile development methodology with regular sprints, continuous integration, and transparent communication throughout the project lifecycle.',
'why_choose_description': 'Choose us for our proven track record in enterprise development, deep technical expertise, commitment to quality, and dedication to delivering solutions that exceed expectations.',
'expertise_description': 'Our team brings years of experience in enterprise software development, with expertise in modern frameworks, cloud technologies, and best practices for scalable applications.',
'image_keyword': 'enterprise web development business technology',
'featured': True,
'display_order': 1,
'is_active': True,
},
{
'title': 'Enterprise Mobile App Development',
'description': 'Create stunning, high-performance mobile applications for iOS and Android platforms. We deliver native and cross-platform solutions that provide exceptional user experiences, drive engagement, and scale with your business. Our mobile apps are built with enterprise-grade security, offline capabilities, and seamless backend integration.',
'short_description': 'Enterprise mobile applications for iOS and Android with native performance and advanced features.',
'slug': 'enterprise-mobile-app-development',
'icon': 'mobile',
'price': '35000.00',
'category_slug': 'mobile-development',
'duration': '16-32 weeks',
'deliverables': 'Native Mobile Applications (iOS & Android), Cross-platform App (React Native/Flutter), App Store Deployment, Enterprise App Distribution, Push Notification System, Offline Support & Sync, Analytics Integration, Crash Reporting, Performance Monitoring, Security Implementation, Testing Suite, Documentation',
'technologies': 'React Native, Flutter, Swift, Kotlin, Firebase, AWS Amplify, App Store Connect, Google Play Console, Fastlane, CodePush',
'process_steps': 'Discovery & Planning, UI/UX Design, Architecture Design, Development Sprints, Testing & QA, Beta Testing, App Store Submission, Launch & Marketing Support, Post-Launch Support',
'features_description': 'Enterprise mobile apps with features like biometric authentication, offline-first architecture, real-time synchronization, advanced analytics, push notifications, and enterprise security compliance.',
'deliverables_description': 'Complete mobile application solution including source code, deployment to app stores, enterprise distribution setup, analytics dashboard, and comprehensive documentation.',
'process_description': 'We use agile methodologies with continuous testing, regular stakeholder reviews, and iterative improvements based on user feedback.',
'why_choose_description': 'Our mobile development expertise, combined with enterprise-grade practices, ensures your app performs flawlessly, scales efficiently, and provides exceptional user experiences.',
'expertise_description': 'Specialized in both native and cross-platform development, with deep knowledge of mobile architecture patterns, performance optimization, and platform-specific best practices.',
'image_keyword': 'enterprise mobile app development smartphone business',
'featured': True,
'display_order': 2,
'is_active': True,
},
{
'title': 'Enterprise API Development & Integration',
'description': 'Build robust, scalable APIs that power your applications and enable seamless integration with third-party services. Our APIs are designed for performance, security, maintainability, and enterprise-scale usage. We create comprehensive API ecosystems that support microservices architecture and enable digital transformation.',
'short_description': 'Enterprise-grade RESTful APIs and microservices for seamless system integration and digital transformation.',
'slug': 'enterprise-api-development-integration',
'icon': 'api',
'price': '20000.00',
'category_slug': 'api-development',
'duration': '8-16 weeks',
'deliverables': 'RESTful API Suite, GraphQL API (optional), API Gateway Configuration, Authentication & Authorization System, Rate Limiting & Throttling, API Documentation (OpenAPI/Swagger), SDK Development, Integration Testing Suite, Monitoring & Analytics, API Versioning Strategy, Developer Portal, Support & Maintenance',
'technologies': 'Node.js, Python, FastAPI, Django REST Framework, PostgreSQL, MongoDB, Redis, AWS API Gateway, Kong, Apigee, GraphQL, WebSockets, OAuth 2.0, JWT',
'process_steps': 'API Planning & Design, Architecture Design, Development & Implementation, Documentation, Testing & QA, Security Audit, Deployment, Integration Support, Monitoring Setup, Ongoing Maintenance',
'features_description': 'Enterprise APIs with advanced features including OAuth 2.0 authentication, rate limiting, request/response caching, webhook support, comprehensive logging, and real-time monitoring.',
'deliverables_description': 'Complete API solution with comprehensive documentation, SDKs for multiple languages, developer portal, testing tools, and integration support.',
'process_description': 'We follow API-first design principles with thorough documentation, versioning strategies, and comprehensive testing throughout the development lifecycle.',
'why_choose_description': 'Our API development expertise ensures your APIs are secure, performant, well-documented, and designed for long-term maintainability and scalability.',
'expertise_description': 'Deep expertise in API design patterns, microservices architecture, security best practices, and integration with enterprise systems.',
'image_keyword': 'api development integration enterprise technology',
'featured': True,
'display_order': 3,
'is_active': True,
},
{
'title': 'Enterprise Cloud Migration Services',
'description': 'Migrate your existing infrastructure to the cloud with minimal downtime and maximum efficiency. We help you leverage cloud technologies for improved scalability, security, cost efficiency, and business agility. Our migration services ensure a smooth transition with comprehensive planning, execution, and optimization.',
'short_description': 'Seamless enterprise cloud migration with enhanced security, scalability, and cost optimization.',
'slug': 'enterprise-cloud-migration-services',
'icon': 'cloud',
'price': '50000.00',
'category_slug': 'cloud-services',
'duration': '16-32 weeks',
'deliverables': 'Cloud Architecture Design, Infrastructure as Code (IaC), Data Migration Plan & Execution, Security Configuration & Compliance, Monitoring & Alerting Setup, Disaster Recovery Plan, Cost Optimization Strategy, Performance Tuning, Training & Documentation, Ongoing Support & Optimization',
'technologies': 'AWS, Azure, Google Cloud Platform, Docker, Kubernetes, Terraform, Ansible, CloudFormation, CI/CD Pipelines, Monitoring Tools (CloudWatch, Datadog, New Relic)',
'process_steps': 'Assessment & Planning, Architecture Design, Proof of Concept, Migration Strategy, Phased Migration Execution, Testing & Validation, Optimization, Training, Go-Live Support, Ongoing Management',
'features_description': 'Comprehensive cloud migration with features including automated infrastructure provisioning, multi-region deployment, auto-scaling, disaster recovery, and cost optimization.',
'deliverables_description': 'Complete cloud infrastructure with automated deployment, monitoring, security hardening, documentation, and ongoing optimization support.',
'process_description': 'We follow a phased migration approach with thorough testing, minimal downtime, and comprehensive rollback plans to ensure business continuity.',
'why_choose_description': 'Our cloud migration expertise, combined with proven methodologies, ensures a smooth transition with minimal risk and maximum value realization.',
'expertise_description': 'Certified cloud architects with extensive experience in AWS, Azure, and GCP, specializing in enterprise migrations and cloud-native architectures.',
'image_keyword': 'cloud migration enterprise infrastructure technology',
'featured': True,
'display_order': 4,
'is_active': True,
},
{
'title': 'Enterprise DevOps & CI/CD Solutions',
'description': 'Implement enterprise-grade DevOps practices and CI/CD pipelines to accelerate software delivery, improve quality, and reduce operational overhead. We design and implement comprehensive DevOps solutions that enable continuous integration, continuous deployment, and infrastructure automation.',
'short_description': 'Enterprise DevOps and CI/CD solutions for automated software delivery and infrastructure management.',
'slug': 'enterprise-devops-cicd-solutions',
'icon': 'settings',
'price': '30000.00',
'category_slug': 'enterprise-solutions',
'duration': '8-16 weeks',
'deliverables': 'CI/CD Pipeline Setup, Infrastructure as Code, Automated Testing Integration, Deployment Automation, Monitoring & Logging Setup, Security Scanning Integration, Documentation, Team Training, Best Practices Guide, Ongoing Support',
'technologies': 'Jenkins, GitLab CI, GitHub Actions, Azure DevOps, Docker, Kubernetes, Terraform, Ansible, Prometheus, Grafana, ELK Stack, SonarQube',
'process_steps': 'Assessment & Planning, Tool Selection, Pipeline Design, Implementation, Testing, Documentation, Training, Go-Live, Optimization, Ongoing Support',
'features_description': 'Comprehensive DevOps solutions with automated builds, testing, security scanning, deployment pipelines, infrastructure provisioning, and monitoring.',
'deliverables_description': 'Complete DevOps infrastructure with automated pipelines, monitoring dashboards, documentation, and team training for sustainable operations.',
'process_description': 'We implement DevOps best practices with a focus on automation, quality gates, security, and continuous improvement.',
'why_choose_description': 'Our DevOps expertise helps you achieve faster time-to-market, improved quality, reduced costs, and enhanced team productivity.',
'expertise_description': 'Experienced DevOps engineers with deep knowledge of CI/CD tools, containerization, orchestration, and infrastructure automation.',
'image_keyword': 'devops cicd automation enterprise technology',
'featured': False,
'display_order': 5,
'is_active': True,
},
{
'title': 'Enterprise Data Analytics & Business Intelligence',
'description': 'Transform your data into actionable insights with enterprise-grade analytics and business intelligence solutions. We build comprehensive data pipelines, analytics platforms, and visualization dashboards that enable data-driven decision making across your organization.',
'short_description': 'Enterprise data analytics and BI solutions for data-driven decision making and business insights.',
'slug': 'enterprise-data-analytics-business-intelligence',
'icon': 'analytics',
'price': '40000.00',
'category_slug': 'enterprise-solutions',
'duration': '12-24 weeks',
'deliverables': 'Data Pipeline Architecture, ETL/ELT Processes, Data Warehouse Setup, Analytics Platform, BI Dashboards, Custom Reports, Data Visualization, Predictive Analytics Models, Documentation, Training',
'technologies': 'Python, R, SQL, Apache Spark, Airflow, Snowflake, BigQuery, Redshift, Tableau, Power BI, Looker, Jupyter Notebooks, ML Models',
'process_steps': 'Data Assessment, Architecture Design, Pipeline Development, Data Integration, Analytics Development, Dashboard Creation, Testing, Training, Deployment, Ongoing Support',
'features_description': 'Advanced analytics with real-time data processing, predictive modeling, interactive dashboards, automated reporting, and machine learning capabilities.',
'deliverables_description': 'Complete analytics solution with data pipelines, warehouses, dashboards, reports, and training for your team.',
'process_description': 'We follow a data-driven approach with iterative development, stakeholder feedback, and continuous refinement of analytics models.',
'why_choose_description': 'Our analytics expertise helps you unlock the value in your data, make informed decisions, and gain competitive advantages through insights.',
'expertise_description': 'Data scientists and engineers with expertise in big data technologies, machine learning, and business intelligence platforms.',
'image_keyword': 'data analytics business intelligence enterprise dashboard',
'featured': False,
'display_order': 6,
'is_active': True,
},
]
# Process each service
for service_data in services_data:
category_slug = service_data.pop('category_slug')
image_keyword = service_data.pop('image_keyword')
category = categories.get(category_slug)
if not category:
self.stdout.write(
self.style.ERROR(f'Category "{category_slug}" not found for service: {service_data["title"]}')
)
continue
service_data['category'] = category
# Check if service exists
service, created = Service.objects.get_or_create(
slug=service_data['slug'],
defaults=service_data
)
if not created and not update_existing:
self.stdout.write(
self.style.WARNING(f'Service already exists (skipping): {service.title}')
)
continue
if not created and update_existing:
# Update existing service
for key, value in service_data.items():
setattr(service, key, value)
service.save()
self.stdout.write(
self.style.SUCCESS(f'Updated service: {service.title}')
)
else:
self.stdout.write(
self.style.SUCCESS(f'Created service: {service.title}')
)
# Download and set image
if service:
self.stdout.write(f'Downloading image for: {service.title}...')
image_data = self.download_image_from_unsplash(
image_keyword,
width=width,
height=height,
api_key=unsplash_key
)
if image_data:
try:
# Determine file extension (default to jpg)
filename = f"{service.slug}.jpg"
# Save image to service
service.image.save(
filename,
ContentFile(image_data.read()),
save=True
)
self.stdout.write(
self.style.SUCCESS(f' ✓ Image saved for: {service.title}')
)
except Exception as e:
self.stdout.write(
self.style.ERROR(f' ✗ Failed to save image: {str(e)}')
)
else:
self.stdout.write(
self.style.WARNING(f' ⚠ No image downloaded for: {service.title}')
)
# Add features for enterprise services
if created or update_existing:
# Clear existing features if updating
if update_existing and not created:
ServiceFeature.objects.filter(service=service).delete()
# Add enterprise features
features_data = [
{
'title': 'Enterprise-Grade Security',
'description': 'Bank-level security with encryption, authentication, and compliance standards',
'icon': 'shield',
'display_order': 1
},
{
'title': 'Scalable Architecture',
'description': 'Built to handle growth with horizontal scaling and load balancing',
'icon': 'trending-up',
'display_order': 2
},
{
'title': '24/7 Support',
'description': 'Round-the-clock support and monitoring for mission-critical systems',
'icon': 'headphones',
'display_order': 3
},
{
'title': 'Comprehensive Documentation',
'description': 'Detailed documentation for developers, administrators, and end users',
'icon': 'book',
'display_order': 4
},
]
for feature_data in features_data:
ServiceFeature.objects.get_or_create(
service=service,
title=feature_data['title'],
defaults=feature_data
)
# Add expertise items
expertise_data = [
{
'title': 'Industry Expertise',
'description': 'Deep understanding of enterprise requirements and industry best practices',
'icon': 'award',
'display_order': 1
},
{
'title': 'Proven Methodology',
'description': 'Agile development with proven processes and quality assurance',
'icon': 'check-circle',
'display_order': 2
},
{
'title': 'Technology Leadership',
'description': 'Cutting-edge technologies and modern development practices',
'icon': 'code',
'display_order': 3
},
]
for expertise_data_item in expertise_data:
ServiceExpertise.objects.get_or_create(
service=service,
title=expertise_data_item['title'],
defaults=expertise_data_item
)
self.stdout.write(
self.style.SUCCESS('\n✓ Successfully imported enterprise sample data!')
)
if not unsplash_key:
self.stdout.write(
self.style.WARNING(
'\nNote: Using Unsplash Source API (no key required). '
'For better reliability, consider using --unsplash-key with an API key from https://unsplash.com/developers'
)
)

View File

@@ -0,0 +1,233 @@
from django.core.management.base import BaseCommand
from django.db import transaction
from services.models import Service, ServiceCategory, ServiceFeature
class Command(BaseCommand):
help = 'Import completely fresh service data'
def handle(self, *args, **options):
with transaction.atomic():
# Clear existing data
ServiceFeature.objects.all().delete()
Service.objects.all().delete()
ServiceCategory.objects.all().delete()
self.stdout.write(self.style.WARNING('Cleared existing service data'))
# Create fresh categories
categories = {
'enterprise-content': {
'name': 'Enterprise Content',
'description': 'Enterprise-grade solutions for modern businesses',
'display_order': 1
}
}
created_categories = {}
for slug, data in categories.items():
category, created = ServiceCategory.objects.get_or_create(
slug=slug,
defaults={
'name': data['name'],
'description': data['description'],
'display_order': data['display_order'],
'is_active': True
}
)
created_categories[slug] = category
self.stdout.write(f'Created category: {category.name}')
# Create fresh services with detailed data
services_data = [
{
'title': 'Custom Software Development',
'description': 'We design and build tailored digital solutions that align precisely with your business goals — delivering reliable, scalable, and future-ready applications that drive measurable value.',
'short_description': 'Tailored digital solutions aligned with your business goals.',
'slug': 'custom-software-development',
'icon': 'code',
'price': '50000.00',
'category_slug': 'enterprise-content',
'duration': '12-20 weeks',
'deliverables': 'Custom Application, System Architecture, Database Design, API Development, User Interface, Testing Suite, Deployment Setup, Documentation, Training, 6 Months Support',
'technologies': 'React, Next.js, TypeScript, Node.js, Python, PostgreSQL, MongoDB, Redis, AWS, Docker, Kubernetes',
'process_steps': 'Requirements Analysis, Solution Design, Architecture Planning, Development, Testing, Deployment, Training, Launch Support',
'featured': True,
'display_order': 1,
'features': [
{'title': 'Custom Solutions', 'description': 'Tailored applications built for your specific needs', 'icon': 'cogs'},
{'title': 'Scalable Architecture', 'description': 'Built to grow with your business', 'icon': 'expand'},
{'title': 'Future-Ready', 'description': 'Modern tech stack for long-term sustainability', 'icon': 'rocket'},
{'title': 'Business Alignment', 'description': 'Solutions that drive measurable business value', 'icon': 'chart-line'},
{'title': 'Reliable', 'description': 'Enterprise-grade reliability and performance', 'icon': 'shield'},
{'title': 'Full Support', 'description': 'Comprehensive training and ongoing support', 'icon': 'headset'}
]
},
{
'title': 'Data Replication',
'description': 'We ensure secure, real-time synchronization across your databases and systems — maintaining data accuracy, consistency, and availability for mission-critical operations.',
'short_description': 'Secure real-time data synchronization across systems.',
'slug': 'data-replication',
'icon': 'sync',
'price': '35000.00',
'category_slug': 'enterprise-content',
'duration': '8-12 weeks',
'deliverables': 'Replication System, Data Pipeline, Monitoring Dashboard, Conflict Resolution, Backup Strategy, Security Configuration, Performance Tuning, Documentation, 6 Months Support',
'technologies': 'PostgreSQL, MySQL, MongoDB, Redis, Apache Kafka, AWS DMS, Azure Data Sync, Change Data Capture, ETL Tools',
'process_steps': 'Data Assessment, Architecture Design, Pipeline Setup, Testing, Security Implementation, Monitoring Setup, Optimization, Documentation, Go-live',
'featured': True,
'display_order': 2,
'features': [
{'title': 'Real-Time Sync', 'description': 'Instant data synchronization across systems', 'icon': 'bolt'},
{'title': 'Data Accuracy', 'description': 'Ensures consistency and accuracy across databases', 'icon': 'check-circle'},
{'title': 'High Availability', 'description': 'Mission-critical data always available', 'icon': 'server'},
{'title': 'Secure Transfer', 'description': 'Encrypted data transmission and storage', 'icon': 'lock'},
{'title': 'Conflict Resolution', 'description': 'Automated handling of data conflicts', 'icon': 'cogs'},
{'title': 'Performance', 'description': 'Optimized for minimal impact on operations', 'icon': 'gauge'}
]
},
{
'title': 'Incident Management SaaS',
'description': 'We provide intelligent, cloud-based incident management tools that empower teams to detect, respond, and resolve issues faster — minimizing downtime and protecting customer trust.',
'short_description': 'Cloud-based incident management for faster issue resolution.',
'slug': 'incident-management-saas',
'icon': 'bell',
'price': '45000.00',
'category_slug': 'enterprise-content',
'duration': '16-20 weeks',
'deliverables': 'SaaS Platform, Incident Dashboard, Alert System, Integration APIs, Mobile App, Reporting Tools, Analytics, Automation Workflows, Documentation, 12 Months Support',
'technologies': 'React, Node.js, TypeScript, PostgreSQL, Redis, WebSockets, AWS, Kubernetes, PagerDuty API, Slack Integration, Twilio',
'process_steps': 'Requirements Analysis, Platform Design, Core Development, Integration Development, Testing, Security Audit, Deployment, Training, Launch',
'featured': True,
'display_order': 3,
'features': [
{'title': 'Intelligent Detection', 'description': 'AI-powered incident detection and alerting', 'icon': 'brain'},
{'title': 'Rapid Response', 'description': 'Tools to respond and resolve issues faster', 'icon': 'bolt'},
{'title': 'Minimize Downtime', 'description': 'Reduce system downtime and service disruption', 'icon': 'clock'},
{'title': 'Team Collaboration', 'description': 'Empower teams with collaborative tools', 'icon': 'users'},
{'title': 'Cloud-Based', 'description': 'Accessible anywhere, anytime', 'icon': 'cloud'},
{'title': 'Customer Trust', 'description': 'Protect and maintain customer confidence', 'icon': 'shield'}
]
},
{
'title': 'AI-Powered Business Intelligence',
'description': 'We transform enterprise data into actionable insights with advanced analytics and AI — enabling smarter decisions, performance optimization, and data-driven innovation.',
'short_description': 'Transform data into insights with AI and advanced analytics.',
'slug': 'ai-powered-business-intelligence',
'icon': 'brain',
'price': '60000.00',
'category_slug': 'enterprise-content',
'duration': '20-24 weeks',
'deliverables': 'BI Platform, Machine Learning Models, Data Pipeline, Interactive Dashboards, Predictive Analytics, Report Generation, API Integration, Model Training, Documentation, 12 Months Support',
'technologies': 'Python, TensorFlow, PyTorch, Pandas, Scikit-learn, React, D3.js, Tableau, PostgreSQL, Snowflake, AWS SageMaker, Apache Spark',
'process_steps': 'Data Analysis, Model Development, Dashboard Design, Pipeline Development, Training, Integration, Testing, Optimization, Deployment, Training',
'featured': True,
'display_order': 4,
'features': [
{'title': 'Actionable Insights', 'description': 'Transform raw data into meaningful insights', 'icon': 'lightbulb'},
{'title': 'Advanced Analytics', 'description': 'AI-powered analytics and predictions', 'icon': 'chart-line'},
{'title': 'Smart Decisions', 'description': 'Enable data-driven decision making', 'icon': 'brain'},
{'title': 'Performance Optimization', 'description': 'Identify and optimize business performance', 'icon': 'gauge'},
{'title': 'Data-Driven Innovation', 'description': 'Unlock new opportunities through data', 'icon': 'rocket'},
{'title': 'Enterprise Scale', 'description': 'Built to handle enterprise data volumes', 'icon': 'database'}
]
},
{
'title': 'Backend Engineering',
'description': 'We architect and optimize high-performance backend systems — ensuring your applications run securely, efficiently, and scale effortlessly as your business grows.',
'short_description': 'High-performance backend systems that scale effortlessly.',
'slug': 'backend-engineering',
'icon': 'server',
'price': '40000.00',
'category_slug': 'enterprise-content',
'duration': '10-16 weeks',
'deliverables': 'Backend Architecture, API Development, Database Design, Authentication System, Caching Strategy, Performance Optimization, Security Implementation, Testing, Documentation, 6 Months Support',
'technologies': 'Node.js, Python, Django, FastAPI, PostgreSQL, MongoDB, Redis, RabbitMQ, GraphQL, REST, Docker, Kubernetes, AWS',
'process_steps': 'Architecture Design, Database Modeling, API Development, Security Implementation, Optimization, Testing, Deployment, Monitoring Setup, Documentation',
'featured': True,
'display_order': 5,
'features': [
{'title': 'High Performance', 'description': 'Optimized for speed and efficiency', 'icon': 'gauge'},
{'title': 'Secure', 'description': 'Enterprise-grade security implementation', 'icon': 'shield'},
{'title': 'Scalable', 'description': 'Scales effortlessly with business growth', 'icon': 'expand'},
{'title': 'Efficient', 'description': 'Resource-optimized for cost efficiency', 'icon': 'cogs'},
{'title': 'Reliable', 'description': 'Built for uptime and reliability', 'icon': 'check-circle'},
{'title': 'Modern Architecture', 'description': 'Microservices and cloud-native design', 'icon': 'cloud'}
]
},
{
'title': 'Frontend Engineering',
'description': 'We craft responsive, accessible, and engaging user interfaces — blending performance with design to deliver exceptional digital experiences across devices and platforms.',
'short_description': 'Responsive, engaging UIs for exceptional digital experiences.',
'slug': 'frontend-engineering',
'icon': 'palette',
'price': '35000.00',
'category_slug': 'enterprise-content',
'duration': '10-14 weeks',
'deliverables': 'Frontend Application, Component Library, Responsive Design, Accessibility Implementation, Performance Optimization, Testing Suite, Documentation, Style Guide, 6 Months Support',
'technologies': 'React, Next.js, TypeScript, Vue.js, Tailwind CSS, Material-UI, Redux, GraphQL, Jest, Cypress, Webpack, Vite',
'process_steps': 'UI/UX Design, Component Development, Responsive Implementation, Accessibility Audit, Performance Optimization, Testing, Browser Compatibility, Deployment',
'featured': True,
'display_order': 6,
'features': [
{'title': 'Responsive Design', 'description': 'Flawless experience across all devices', 'icon': 'mobile'},
{'title': 'Accessible', 'description': 'WCAG compliant for all users', 'icon': 'universal-access'},
{'title': 'Engaging UX', 'description': 'Beautiful, intuitive user experiences', 'icon': 'heart'},
{'title': 'High Performance', 'description': 'Optimized for speed and efficiency', 'icon': 'bolt'},
{'title': 'Modern Design', 'description': 'Contemporary design patterns and aesthetics', 'icon': 'palette'},
{'title': 'Cross-Platform', 'description': 'Works seamlessly across browsers and platforms', 'icon': 'window-maximize'}
]
},
{
'title': 'External Systems Integrations',
'description': 'We connect everything — from fiscal printers and payment terminals to ERP and cloud platforms — enabling enterprises to operate seamlessly across physical and digital environments.',
'short_description': 'Connect systems for seamless enterprise operations.',
'slug': 'external-systems-integrations',
'icon': 'plug',
'price': '45000.00',
'category_slug': 'enterprise-content',
'duration': '12-18 weeks',
'deliverables': 'Integration Platform, API Connectors, Payment Gateway Integration, ERP Integration, Device Integration, Middleware Development, Testing Suite, Security Implementation, Documentation, 6 Months Support',
'technologies': 'REST APIs, GraphQL, SOAP, gRPC, Kafka, RabbitMQ, OAuth 2.0, SAP, Salesforce, Stripe, PayPal, IoT Protocols, Node.js, Python',
'process_steps': 'Systems Analysis, Integration Design, API Development, Device Setup, Testing, Security Review, Deployment, Monitoring, Documentation, Training',
'featured': True,
'display_order': 7,
'features': [
{'title': 'Universal Connectivity', 'description': 'Connect any system, device, or platform', 'icon': 'network-wired'},
{'title': 'Payment Integration', 'description': 'Payment terminals and gateway integration', 'icon': 'credit-card'},
{'title': 'ERP Integration', 'description': 'Seamless ERP and business system integration', 'icon': 'building'},
{'title': 'IoT Devices', 'description': 'Connect physical devices like fiscal printers', 'icon': 'print'},
{'title': 'Cloud Platforms', 'description': 'Integration with major cloud platforms', 'icon': 'cloud'},
{'title': 'Seamless Operations', 'description': 'Unified operations across all environments', 'icon': 'sync'}
]
}
]
for service_data in services_data:
# Extract features before creating service
features = service_data.pop('features', [])
category_slug = service_data.pop('category_slug')
# Create service
service = Service.objects.create(
category=created_categories[category_slug],
**service_data
)
self.stdout.write(f'Created service: {service.title}')
# Create features for the service
for feature_data in features:
ServiceFeature.objects.create(
service=service,
**feature_data
)
self.stdout.write(f' Added {len(features)} features')
self.stdout.write(
self.style.SUCCESS('Successfully imported fresh service data!')
)
self.stdout.write(
self.style.SUCCESS(f'Created {Service.objects.count()} services with {ServiceFeature.objects.count()} features')
)

View File

@@ -0,0 +1,158 @@
from django.core.management.base import BaseCommand
from django.db import transaction
from services.models import Service, ServiceExpertise
class Command(BaseCommand):
help = 'Populate expertise items for existing services'
def handle(self, *args, **options):
with transaction.atomic():
# Expertise data for each service
expertise_data = {
'enterprise-web-application': [
{
'title': 'Expert Development Team',
'description': 'Our experienced team specializes in enterprise web applications with years of industry expertise. We bring deep knowledge and proven methodologies to every project.',
'icon': 'users',
'display_order': 1
},
{
'title': 'Modern Technology Stack',
'description': 'We use cutting-edge technologies and frameworks to deliver scalable, secure, and future-proof web applications.',
'icon': 'code',
'display_order': 2
},
{
'title': 'Proven Track Record',
'description': 'We have successfully delivered enterprise web applications to numerous clients, helping them achieve their business goals and drive growth.',
'icon': 'chart-line',
'display_order': 3
}
],
'cross-platform-mobile-app': [
{
'title': 'Mobile Development Experts',
'description': 'Our specialized mobile development team has extensive experience in both native and cross-platform app development.',
'icon': 'mobile',
'display_order': 1
},
{
'title': 'Cross-Platform Mastery',
'description': 'We excel in React Native and Flutter development, delivering high-performance apps for both iOS and Android platforms.',
'icon': 'layer-group',
'display_order': 2
},
{
'title': 'App Store Success',
'description': 'We have successfully launched numerous apps in both Apple App Store and Google Play Store with excellent ratings.',
'icon': 'store',
'display_order': 3
}
],
'restful-api-development': [
{
'title': 'API Architecture Experts',
'description': 'Our team specializes in designing and building robust, scalable APIs that power modern applications.',
'icon': 'network-wired',
'display_order': 1
},
{
'title': 'Performance Optimization',
'description': 'We create high-performance APIs with caching, rate limiting, and optimization techniques for maximum efficiency.',
'icon': 'gauge',
'display_order': 2
},
{
'title': 'Comprehensive Documentation',
'description': 'We provide detailed API documentation with interactive examples and SDKs for easy integration.',
'icon': 'book',
'display_order': 3
}
],
'cloud-migration-devops': [
{
'title': 'Cloud Migration Specialists',
'description': 'Our certified cloud engineers have extensive experience in migrating complex infrastructures with minimal downtime.',
'icon': 'cloud',
'display_order': 1
},
{
'title': 'DevOps Automation',
'description': 'We implement complete CI/CD pipelines and automation workflows to streamline your development process.',
'icon': 'cogs',
'display_order': 2
},
{
'title': 'Cost Optimization',
'description': 'We help optimize your cloud costs while maintaining performance and reliability standards.',
'icon': 'dollar-sign',
'display_order': 3
}
],
'ai-powered-business-intelligence': [
{
'title': 'AI & ML Specialists',
'description': 'Our data scientists and AI engineers have deep expertise in machine learning and business intelligence solutions.',
'icon': 'brain',
'display_order': 1
},
{
'title': 'Advanced Analytics',
'description': 'We create sophisticated analytics platforms that transform raw data into actionable business insights.',
'icon': 'chart-bar',
'display_order': 2
},
{
'title': 'Predictive Modeling',
'description': 'Our team builds advanced predictive models that help businesses make data-driven decisions.',
'icon': 'crystal-ball',
'display_order': 3
}
],
'ecommerce-platform': [
{
'title': 'E-commerce Specialists',
'description': 'Our team has extensive experience in building high-converting e-commerce platforms for various industries.',
'icon': 'shopping-cart',
'display_order': 1
},
{
'title': 'Payment Integration',
'description': 'We integrate secure payment gateways and ensure PCI compliance for safe transactions.',
'icon': 'credit-card',
'display_order': 2
},
{
'title': 'SEO & Performance',
'description': 'We optimize e-commerce sites for search engines and performance to maximize conversions.',
'icon': 'search',
'display_order': 3
}
]
}
for service_slug, expertise_items in expertise_data.items():
try:
service = Service.objects.get(slug=service_slug)
# Clear existing expertise items
ServiceExpertise.objects.filter(service=service).delete()
# Create new expertise items
for expertise_data in expertise_items:
ServiceExpertise.objects.create(
service=service,
**expertise_data
)
self.stdout.write(f'Added expertise items for: {service.title}')
except Service.DoesNotExist:
self.stdout.write(
self.style.WARNING(f'Service with slug "{service_slug}" not found')
)
self.stdout.write(
self.style.SUCCESS('Successfully populated expertise items!')
)

View File

@@ -0,0 +1,75 @@
from django.core.management.base import BaseCommand
from django.db import transaction
from services.models import Service
class Command(BaseCommand):
help = 'Populate section descriptions for existing services'
def handle(self, *args, **options):
with transaction.atomic():
# Section descriptions for each service
descriptions_data = {
'enterprise-web-application': {
'features_description': 'Our enterprise web applications are built with cutting-edge technologies and industry best practices to deliver exceptional performance and user experience.',
'deliverables_description': 'Get a complete enterprise-grade web application with advanced features, comprehensive documentation, and ongoing support.',
'process_description': 'We follow a structured 8-step development process that ensures quality, efficiency, and timely delivery of your enterprise web application.',
'why_choose_description': 'Why choose our Enterprise Web Application service?',
'expertise_description': 'Our team brings years of experience in enterprise web development, combining technical expertise with business understanding.'
},
'cross-platform-mobile-app': {
'features_description': 'Our cross-platform mobile apps deliver native-like performance while reducing development time and costs significantly.',
'deliverables_description': 'Receive a fully functional mobile app for both iOS and Android platforms, complete with app store deployment support.',
'process_description': 'Our proven mobile development methodology ensures your app meets all platform requirements and user expectations.',
'why_choose_description': 'Why choose our Cross-Platform Mobile App service?',
'expertise_description': 'We specialize in React Native and Flutter development, delivering high-performance apps that work seamlessly across platforms.'
},
'restful-api-development': {
'features_description': 'Our RESTful APIs are designed for scalability, security, and ease of integration with comprehensive documentation.',
'deliverables_description': 'Get a robust, well-documented API with SDKs, testing tools, and comprehensive integration support.',
'process_description': 'We follow API-first development principles to ensure your API is reliable, scalable, and developer-friendly.',
'why_choose_description': 'Why choose our RESTful API Development service?',
'expertise_description': 'Our API specialists have extensive experience in designing and building enterprise-grade APIs for various industries.'
},
'cloud-migration-devops': {
'features_description': 'Our cloud migration and DevOps services ensure seamless transition to the cloud with zero downtime and improved performance.',
'deliverables_description': 'Complete cloud migration with automated CI/CD pipelines, monitoring, and cost optimization strategies.',
'process_description': 'Our systematic approach to cloud migration minimizes risks while maximizing the benefits of cloud infrastructure.',
'why_choose_description': 'Why choose our Cloud Migration & DevOps service?',
'expertise_description': 'We are certified cloud architects with proven experience in migrating complex infrastructures and implementing DevOps practices.'
},
'ai-powered-business-intelligence': {
'features_description': 'Transform your data into actionable insights with our AI-powered business intelligence solutions.',
'deliverables_description': 'Get a complete BI platform with AI-powered analytics, predictive models, and interactive dashboards.',
'process_description': 'Our data science methodology ensures your BI solution provides accurate insights and drives informed decision-making.',
'why_choose_description': 'Why choose our AI-Powered Business Intelligence service?',
'expertise_description': 'Our data scientists and AI engineers specialize in creating intelligent solutions that turn data into competitive advantage.'
},
'ecommerce-platform': {
'features_description': 'Build a high-converting e-commerce platform with advanced features, secure payments, and mobile optimization.',
'deliverables_description': 'Get a complete e-commerce solution with payment integration, inventory management, and marketing tools.',
'process_description': 'We follow e-commerce best practices to ensure your platform drives sales and provides excellent customer experience.',
'why_choose_description': 'Why choose our E-commerce Platform service?',
'expertise_description': 'Our e-commerce specialists have built successful online stores for businesses across various industries and sizes.'
}
}
for service_slug, descriptions in descriptions_data.items():
try:
service = Service.objects.get(slug=service_slug)
# Update service with new descriptions
for field, value in descriptions.items():
setattr(service, field, value)
service.save()
self.stdout.write(f'Updated section descriptions for: {service.title}')
except Service.DoesNotExist:
self.stdout.write(
self.style.WARNING(f'Service with slug "{service_slug}" not found')
)
self.stdout.write(
self.style.SUCCESS('Successfully populated section descriptions!')
)

View File

@@ -0,0 +1,221 @@
from django.core.management.base import BaseCommand
from django.db import transaction
from services.models import Service, ServiceCategory, ServiceFeature
class Command(BaseCommand):
help = 'Populate the database with sample services'
def handle(self, *args, **options):
with transaction.atomic():
# Create categories
web_dev_category, created = ServiceCategory.objects.get_or_create(
slug='web-development',
defaults={
'name': 'Web Development',
'description': 'Custom web applications and websites',
'display_order': 1,
'is_active': True
}
)
mobile_category, created = ServiceCategory.objects.get_or_create(
slug='mobile-development',
defaults={
'name': 'Mobile Development',
'description': 'Native and cross-platform mobile apps',
'display_order': 2,
'is_active': True
}
)
api_category, created = ServiceCategory.objects.get_or_create(
slug='api-development',
defaults={
'name': 'API Development',
'description': 'RESTful APIs and microservices',
'display_order': 3,
'is_active': True
}
)
# Create services
services_data = [
{
'title': 'Custom Web Application Development',
'description': 'Build powerful, scalable web applications tailored to your business needs. Our expert developers use modern frameworks and technologies to create solutions that drive growth and efficiency.',
'short_description': 'Custom web applications built with modern technologies for optimal performance and scalability.',
'slug': 'custom-web-application-development',
'icon': 'code',
'price': '5000.00',
'category': web_dev_category,
'duration': '4-8 weeks',
'deliverables': 'Responsive Web Application, Admin Dashboard, User Authentication, Database Design, API Integration, Testing & Deployment',
'technologies': 'React, Next.js, Node.js, PostgreSQL, AWS, Docker',
'process_steps': 'Requirements Analysis, System Design, Development, Testing, Deployment, Training',
'featured': True,
'display_order': 1,
'is_active': True
},
{
'title': 'Mobile App Development',
'description': 'Create stunning mobile applications for iOS and Android platforms. We deliver native and cross-platform solutions that provide exceptional user experiences and drive engagement.',
'short_description': 'Native and cross-platform mobile applications for iOS and Android.',
'slug': 'mobile-app-development',
'icon': 'mobile',
'price': '8000.00',
'category': mobile_category,
'duration': '6-12 weeks',
'deliverables': 'Native Mobile App, Cross-platform App, App Store Deployment, Push Notifications, Offline Support, Analytics Integration',
'technologies': 'React Native, Flutter, Swift, Kotlin, Firebase, App Store Connect',
'process_steps': 'UI/UX Design, Development, Testing, App Store Submission, Launch Support',
'featured': True,
'display_order': 2,
'is_active': True
},
{
'title': 'API Development & Integration',
'description': 'Build robust, scalable APIs that power your applications and enable seamless integration with third-party services. Our APIs are designed for performance, security, and maintainability.',
'short_description': 'RESTful APIs and microservices for seamless system integration.',
'slug': 'api-development-integration',
'icon': 'api',
'price': '3000.00',
'category': api_category,
'duration': '2-4 weeks',
'deliverables': 'RESTful API, API Documentation, Authentication System, Rate Limiting, Monitoring, Integration Support',
'technologies': 'Node.js, Python, FastAPI, PostgreSQL, Redis, AWS API Gateway',
'process_steps': 'API Planning, Development, Documentation, Testing, Deployment, Integration',
'featured': False,
'display_order': 3,
'is_active': True
},
{
'title': 'Cloud Migration Services',
'description': 'Migrate your existing infrastructure to the cloud with minimal downtime. We help you leverage cloud technologies for improved scalability, security, and cost efficiency.',
'short_description': 'Seamless migration to cloud platforms with enhanced security and scalability.',
'slug': 'cloud-migration-services',
'icon': 'cloud',
'price': '10000.00',
'category': web_dev_category,
'duration': '8-16 weeks',
'deliverables': 'Cloud Infrastructure Setup, Data Migration, Security Configuration, Monitoring Setup, Training, Ongoing Support',
'technologies': 'AWS, Azure, Google Cloud, Docker, Kubernetes, Terraform',
'process_steps': 'Assessment, Migration Planning, Implementation, Testing, Optimization, Support',
'featured': True,
'display_order': 4,
'is_active': True
}
]
for service_data in services_data:
service, created = Service.objects.get_or_create(
slug=service_data['slug'],
defaults=service_data
)
if created:
self.stdout.write(
self.style.SUCCESS(f'Created service: {service.title}')
)
# Add features for each service
if service.slug == 'custom-web-application-development':
features = [
{
'title': 'Responsive Design',
'description': 'Mobile-first design that works perfectly on all devices',
'icon': 'mobile',
'display_order': 1
},
{
'title': 'Performance Optimization',
'description': 'Fast loading times and optimized user experience',
'icon': 'bolt',
'display_order': 2
},
{
'title': 'Security Features',
'description': 'Built-in security measures to protect your data',
'icon': 'shield',
'display_order': 3
}
]
elif service.slug == 'mobile-app-development':
features = [
{
'title': 'Cross-Platform',
'description': 'Single codebase for both iOS and Android',
'icon': 'mobile',
'display_order': 1
},
{
'title': 'Native Performance',
'description': 'Optimized performance using native components',
'icon': 'gauge',
'display_order': 2
},
{
'title': 'App Store Ready',
'description': 'Complete app store submission and approval process',
'icon': 'store',
'display_order': 3
}
]
elif service.slug == 'api-development-integration':
features = [
{
'title': 'RESTful Design',
'description': 'Clean, intuitive API design following REST principles',
'icon': 'code',
'display_order': 1
},
{
'title': 'Comprehensive Documentation',
'description': 'Detailed API documentation with examples',
'icon': 'book',
'display_order': 2
},
{
'title': 'Rate Limiting',
'description': 'Built-in rate limiting and security measures',
'icon': 'shield',
'display_order': 3
}
]
elif service.slug == 'cloud-migration-services':
features = [
{
'title': 'Zero Downtime',
'description': 'Seamless migration with minimal service interruption',
'icon': 'clock',
'display_order': 1
},
{
'title': 'Cost Optimization',
'description': 'Optimized cloud resources for maximum cost efficiency',
'icon': 'dollar-sign',
'display_order': 2
},
{
'title': 'Security First',
'description': 'Enhanced security with cloud-native security features',
'icon': 'shield',
'display_order': 3
}
]
else:
features = []
for feature_data in features:
ServiceFeature.objects.create(
service=service,
**feature_data
)
else:
self.stdout.write(
self.style.WARNING(f'Service already exists: {service.title}')
)
self.stdout.write(
self.style.SUCCESS('Successfully populated services database')
)