from django.conf.urls import url

from . import views

app_name = "notes"

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