]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/urls.py
views: add compatibility with URLs with embedded date
[chloro.git] / chloro / phyll / urls.py
index 99d6da61075f29a8dd7c054de1a924340f486ac9..14188107cd618c53a4cc6d0566bddd6eca886b79 100644 (file)
@@ -39,6 +39,7 @@ urlpatterns = [
         staff_member_required(views.NoteDeleteView.as_view(), login_url='login'),
     ),
     url(r'^new-note/$', staff_member_required(views.NoteAddView.as_view(), login_url='login')),
+    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w:-]+)/$', views.NoteView.as_view()),
     url(r'^(?P<slug>[\w:-]+)/$', views.NoteView.as_view()),
     url(r'^$', views.HomeView.as_view()),
 ]