debusy/schedule/urls.py

13 lines
402 B
Python
Raw Permalink Normal View History

2020-04-13 11:59:45 +00:00
from django.urls import path, register_converter
from . import views, converters
register_converter(converters.DateConverter, 'date')
app_name = 'schedule'
urlpatterns = [
path('<date:date>/', views.schedule, name='schedule'),
path('<date:date>/submit', views.submit_pickup, name='submit_pickup'),
path('<date:date>/remove', views.submit_pickup_removal, name='submit_pickup_removal'),
]