from django.conf.urls import url from . import views app_name = "notes" urlpatterns = [ url( r'(?P\d{4})/(?P\d{2})/(?P[-\w]+)$', views.entry_detail ), url( r'(?P\d{4})/(?P\d{2})/$', views.date_list, name="notes_by_month" ), url( r'(?P\d{4})/$', views.date_list, name="notes_by_year" ), url( r'^$', views.entry_list, name="notes_archive" ), ]