from django.conf.urls import url from lifting import views urlpatterns = [ url(r'^(?P\d{4})/(?P\d{1,2})/$', views.month_lifts, name='lifting-month'), url(r'^(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/$', views.day_lifts, name='lifting-day'), url(r'^lifts/$', views.lift_list, name='lift-list'), url(r'^lifts/(?P\d+)/$', views.by_lift, name='lift-detail'), url(r'^fitnotes/$', views.fitnotes_upload), ]