mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 10:12:58 +00:00
## Major System Simplification - **90% reduction** in agent configuration complexity (369 → 83 lines) - Removed unused dynamic field system (174 lines eliminated) - Deleted generic template fallback (dead code removal) - Enhanced JavaScript utilities with 15+ shared functions ## New Workflows App Architecture - Unified agent processing with hybrid N8N/Django approach - Shared component system (6 reusable components) - Individual templates with consistent UI patterns - Configuration-driven agent definitions (metadata only) ## Enhanced Developer Experience - 4-step agent creation process (vs complex multi-step before) - Agent template starter file for easy copying - Comprehensive documentation with before/after examples - Enhanced WorkflowsCore utilities for common operations ## Files Added - `workflows/` - Complete new Django app with simplified architecture - `agent-template-starter.html` - Template for easy agent creation - `workflows-core.js` - Enhanced JavaScript utilities (15+ functions) - Shared components: header, quick-agents, processing, results, wallet - Simplified agent configs (5 lines vs 50+ lines each) ## Benefits Achieved ✅ 90% less configuration code per agent ✅ Shared component reusability with dynamic data ✅ Enhanced JavaScript utilities automatically available ✅ Consistent UI/UX across all agents ✅ Dramatically simplified maintenance 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
2.3 KiB
Python
62 lines
2.3 KiB
Python
"""
|
|
URL configuration for netcop_hub project.
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/5.2/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('auth/', include('authentication.urls')),
|
|
path('wallet/', include('wallet.urls')),
|
|
path('', include('agent_base.urls')),
|
|
|
|
# New unified workflows (will replace individual agent apps)
|
|
path('workflows/', include('workflows.urls')),
|
|
|
|
# Legacy individual agent apps (will be deprecated)
|
|
path('agents/weather-reporter/', include('weather_reporter.urls')),
|
|
path('agents/data-analyzer/', include('data_analyzer.urls')),
|
|
path('agents/job-posting-generator/', include('job_posting_generator.urls')),
|
|
path('agents/social-ads-generator/', include('social_ads_generator.urls')),
|
|
path('agents/email-writer/', include('email_writer.urls')),
|
|
path('agents/five-whys-analyzer/', include('five_whys_analyzer.urls')),
|
|
|
|
path('', include('core.urls')),
|
|
]
|
|
|
|
# Development tools (only in DEBUG mode)
|
|
if settings.DEBUG:
|
|
# Serve static and media files during development
|
|
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|
|
# Debug toolbar
|
|
try:
|
|
import debug_toolbar
|
|
urlpatterns = [
|
|
path('__debug__/', include(debug_toolbar.urls)),
|
|
] + urlpatterns
|
|
except ImportError:
|
|
pass
|
|
|
|
# Custom error handlers (work in production when DEBUG=False)
|
|
handler404 = 'core.error_views.custom_404_view'
|
|
handler500 = 'core.error_views.custom_500_view'
|
|
handler403 = 'core.error_views.custom_403_view'
|
|
handler400 = 'core.error_views.custom_400_view'
|