1#!/usr/bin/env python3
 2
 3"""Standard Django file mapping url strings to view functions."""
 4
 5from django.urls import path
 6from django.urls import re_path
 7from django.views.generic import TemplateView
 8
 9import chart.backend.views_activities
10import chart.backend.views_activities2
11import chart.backend.views_jobcreator
12
13app_name = 'backend'
14
15urlpatterns =[
16    # Activity viewer
17    path('activities',
18        chart.backend.views_activities.index,
19        name='activities/index'),
20
21    # New Activity viewer
22    # re_path(r'^activities2$',
23        # chart.backend.views_activities2.index,
24        # name='activities/index2'),
25
26    re_path(r'activity/(?P<activityname>[A-Z0-9_]+)$',
27        chart.backend.views_activities.show_activity,
28        name='activities/single'),
29
30    # Job creator
31    path('jobcreator',
32        chart.backend.views_jobcreator.index,
33        name='schedule/index'),
34
35    # Ingestion viewer. Mostly replaced by job viewer
36    # re_path(r'^ingestion', 'chart.system.ingestion.index'),
37
38    # Show backend performance
39    # re_path(r'^performance', 'chart.system.performance.index'),
40]