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
 7
 8from chart.widgets.views import index
 9from chart.widgets.views import view_widget
10
11app_name = 'widgets'
12
13urlpatterns = [
14    # Widget gallery
15    path('',
16        index,
17        name='index'),
18
19    # Widget info page
20    re_path(r'(?P<widget_name>[a-zA-Z0-9_.-]+)$',
21        view_widget,
22        name='single'),
23]