codescraftman / analytics / urls.py
urls.py
Raw
from django.urls import path
from .views import (
    AnalyticsHomeView,
    DataUploadView,
    ProcessDataView,
    DashboardView,
    DashboardDetailView,
    ReportGenerationView,
    ReportView,
    RealTimeMonitorView,
    DataStoryView,
    HypothesisView,
    APIIntegrationView
)

app_name = 'analytics'  # Define the app_name here

urlpatterns = [
    path('', AnalyticsHomeView.as_view(), name='index'),
    path('upload/', DataUploadView.as_view(), name='data_upload'),
    path('process/', ProcessDataView.as_view(), name='process_data'),
    path('dashboard/', DashboardView.as_view(), name='dashboard'),
    path('dashboard/<int:pk>/', DashboardDetailView.as_view(), name='dashboard_detail'),
    path('report/', ReportView.as_view(), name='report_list'),
    path('report/generate/', ReportGenerationView.as_view(), name='report_generation'),
    path('real-time/', RealTimeMonitorView.as_view(), name='real_time_monitor'),
    path('data-story/', DataStoryView.as_view(), name='data_story'),
    path('data-story/create/', DataStoryView.as_view(), name='data_story_create'),
    path('hypothesis/', HypothesisView.as_view(), name='hypothesis_list'),
    path('api-integration/', APIIntegrationView.as_view(), name='api_integration'),
]