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