diff options
author | luxagraf <sng@luxagraf.net> | 2020-08-15 14:09:09 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-08-15 14:09:09 -0400 |
commit | 00a432ed481be1f2816499048336f0f055d7786f (patch) | |
tree | 3bab7260ed15dd55284ee8178c79f5079aea4ee7 /app/posts/urls/field_note_urls.py | |
parent | df225728281378c7047e1aded2910fbb399b650e (diff) |
moved fieldnotes into posts, finished builder for those
Diffstat (limited to 'app/posts/urls/field_note_urls.py')
-rw-r--r-- | app/posts/urls/field_note_urls.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/posts/urls/field_note_urls.py b/app/posts/urls/field_note_urls.py new file mode 100644 index 0000000..bf16c50 --- /dev/null +++ b/app/posts/urls/field_note_urls.py @@ -0,0 +1,39 @@ +from django.urls import path, re_path + +from ..views import field_note_views as views + +app_name = "fieldnotes" + +urlpatterns = [ + re_path( + r'(?P<year>[0-9]{4})/$', + views.FieldNoteYearArchiveView.as_view(), + name="list_year" + ), + path( + r'', + views.FieldNoteListView.as_view(), + {'page': 1}, + name="list" + ), + path( + r'<int:page>/', + views.FieldNoteListView.as_view(), + name="list" + ), + path( + r'<int:year>/<int:month>/<str:slug>.txt', + views.FieldNoteDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'<int:year>/<int:month>/<str:slug>', + views.FieldNoteDetailView.as_view(), + name="detail" + ), + path( + r'<int:year>/<int:month>/', + views.FieldNoteMonthArchiveView.as_view(month_format='%m'), + name="list_month" + ), +] |