Coverage for core/urls.py: 100%
5 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.urls import include, path
3from utilities.urls import get_model_urls
5from . import views
7app_name = 'core'
8urlpatterns = (
10 path('data-sources/', include(get_model_urls('core', 'datasource', detail=False))),
11 path('data-sources/<int:pk>/', include(get_model_urls('core', 'datasource'))),
13 path('data-files/', include(get_model_urls('core', 'datafile', detail=False))),
14 path('data-files/<int:pk>/', include(get_model_urls('core', 'datafile'))),
16 path('jobs/', include(get_model_urls('core', 'job', detail=False))),
17 path('jobs/<int:pk>/', include(get_model_urls('core', 'job'))),
19 path('changelog/', include(get_model_urls('core', 'objectchange', detail=False))),
20 path('changelog/<int:pk>/', include(get_model_urls('core', 'objectchange'))),
22 # Background Tasks
23 path('background-queues/', views.BackgroundQueueListView.as_view(), name='background_queue_list'),
24 path(
25 'background-queues/<int:queue_index>/<str:status>/',
26 views.BackgroundTaskListView.as_view(),
27 name='background_task_list'
28 ),
29 path('background-tasks/<str:job_id>/', views.BackgroundTaskView.as_view(), name='background_task'),
30 path(
31 'background-tasks/<str:job_id>/delete/',
32 views.BackgroundTaskDeleteView.as_view(),
33 name='background_task_delete'
34 ),
35 path(
36 'background-tasks/<str:job_id>/requeue/',
37 views.BackgroundTaskRequeueView.as_view(),
38 name='background_task_requeue'
39 ),
40 path(
41 'background-tasks/<str:job_id>/enqueue/',
42 views.BackgroundTaskEnqueueView.as_view(),
43 name='background_task_enqueue'
44 ),
45 path('background-tasks/<str:job_id>/stop/', views.BackgroundTaskStopView.as_view(), name='background_task_stop'),
46 path('background-workers/<int:queue_index>/', views.WorkerListView.as_view(), name='worker_list'),
47 path('background-workers/<str:key>/', views.WorkerView.as_view(), name='worker'),
49 path('config-revisions/', include(get_model_urls('core', 'configrevision', detail=False))),
50 path('config-revisions/<int:pk>/', include(get_model_urls('core', 'configrevision'))),
52 path('system/', views.SystemView.as_view(), name='system'),
53 path('system/db-schema/', views.SystemDBSchemaView.as_view(), name='system_db_schema'),
55 path('plugins/', views.PluginListView.as_view(), name='plugin_list'),
56 path('plugins/<str:name>/', views.PluginView.as_view(), name='plugin'),
57)