from django.conf.urls import patterns, url

urlpatterns = patterns('',
    url(r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$', 'notes.views.entry_detail'),
    url(r'(?P<year>\d{4})/(?P<month>\d{2})/$', 'notes.views.date_list', name="notes_by_month"),
    url(r'(?P<year>\d{4})/$', 'notes.views.date_list', name="notes_by_year"),
    url(r'^$', 'notes.views.entry_list', name="notes_archive"),
)