from django.conf.urls import url from lifting import views urlpatterns = [ url(r'^(?P\d{4})/(?P\d{1,2})/$', views.month, name='lifting-month'), url(r'^fitnotes/$', views.fitnotes_upload), ]