mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 18:32:59 +00:00
BREAKING CHANGE: Complete removal of legacy workflows system - Remove entire workflows/ directory and all related files - Update Django settings to remove workflows from INSTALLED_APPS - Fix all URL references from workflows:marketplace to agents:marketplace - Update core views to use agents.models.Agent instead of config files - Fix agent detail template component includes (workflows/components → components) - Update documentation to reflect database-driven agents system only - Remove N8N workflow management script (no longer needed) Template fixes: - Agent header, quick agents panel, processing status, results container - All error pages (403, 404, 500) now point to agents marketplace - Base template navigation and footer updated - Wallet pages redirect to agents marketplace Core changes: - Homepage uses Agent.objects instead of get_all_agents() - Health check counts active agents from database - All template references updated to use components/ path Result: Clean, streamlined agents-only system with no legacy code 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
53 lines
1.8 KiB
Python
53 lines
1.8 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')),
|
|
|
|
# REST API-based agents system (web interface + API)
|
|
path('agents/', include('agents.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'
|