from django.urls import include, path from utilities.urls import get_model_urls from . import views app_name = 'core' urlpatterns = ( path('data-sources/', include(get_model_urls('core', 'datasource', detail=False))), path('data-sources//', include(get_model_urls('core', 'datasource'))), path('data-files/', include(get_model_urls('core', 'datafile', detail=False))), path('data-files//', include(get_model_urls('core', 'datafile'))), path('jobs/', include(get_model_urls('core', 'job', detail=False))), path('jobs//', include(get_model_urls('core', 'job'))), path('changelog/', include(get_model_urls('core', 'objectchange', detail=False))), path('changelog//', include(get_model_urls('core', 'objectchange'))), # Background Tasks path('background-queues/', views.BackgroundQueueListView.as_view(), name='background_queue_list'), path( 'background-queues///', views.BackgroundTaskListView.as_view(), name='background_task_list' ), path('background-tasks//', views.BackgroundTaskView.as_view(), name='background_task'), path( 'background-tasks//delete/', views.BackgroundTaskDeleteView.as_view(), name='background_task_delete' ), path( 'background-tasks//requeue/', views.BackgroundTaskRequeueView.as_view(), name='background_task_requeue' ), path( 'background-tasks//enqueue/', views.BackgroundTaskEnqueueView.as_view(), name='background_task_enqueue' ), path('background-tasks//stop/', views.BackgroundTaskStopView.as_view(), name='background_task_stop'), path('background-workers//', views.WorkerListView.as_view(), name='worker_list'), path('background-workers//', views.WorkerView.as_view(), name='worker'), path('config-revisions/', include(get_model_urls('core', 'configrevision', detail=False))), path('config-revisions//', include(get_model_urls('core', 'configrevision'))), path('system/', views.SystemView.as_view(), name='system'), path('plugins/', views.PluginListView.as_view(), name='plugin_list'), path('plugins//', views.PluginView.as_view(), name='plugin'), )