1#!/usr/bin/env python3
 2
 3"""Standard Django file to map URLs to view functions."""
 4
 5from django.urls import path
 6from django.urls import re_path
 7
 8import chart.events.views
 9
10app_name = 'events'
11
12urlpatterns = [
13    # All event classes
14     path('',
15        chart.events.views.index,
16        name='index'),
17
18    # View single class
19     re_path(r'(?P<eventclass>[A-Za-z0-9_+-/ ()]+)$',
20        chart.events.views.single_eventclass,
21        name='single'),
22]