from django.conf.urls import url from nano.blog import views urlpatterns = [ url(r'^(?P\d{4})/(?P[01]\d)/(?P[0123]\d)/$', views.list_entries_by_date), url(r'^(?P\d{4})/(?P[01]\d)/$', views.list_entries_by_year_and_month), url(r'^(?P\d{4})/$', views.list_entries_by_year), url(r'^latest/$', views.list_latest_entries), url(r'^today/$', views.list_entries_for_today), url(r'^$', views.list_entries), ]