From 7509da286bccd1dda358507cd455f9297db59247 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 15 Nov 2020 10:13:08 -0500 Subject: ported jrnl building to posts --- app/unused_apps/fieldnotes_/urls.py | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 app/unused_apps/fieldnotes_/urls.py (limited to 'app/unused_apps/fieldnotes_/urls.py') diff --git a/app/unused_apps/fieldnotes_/urls.py b/app/unused_apps/fieldnotes_/urls.py new file mode 100644 index 0000000..85ee710 --- /dev/null +++ b/app/unused_apps/fieldnotes_/urls.py @@ -0,0 +1,39 @@ +from django.urls import path, re_path + +from . import views + +app_name = "field notes" + +urlpatterns = [ + re_path( + r'(?P[0-9]{4})/$', + views.FieldNoteYearArchiveView.as_view(), + name="list_year" + ), + path( + r'', + views.FieldNoteListView.as_view(), + {'page': 1}, + name="list" + ), + path( + r'/', + views.FieldNoteListView.as_view(), + name="list" + ), + path( + r'//.txt', + views.FieldNoteDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'//', + views.FieldNoteDetailView.as_view(), + name="detail" + ), + path( + r'//', + views.FieldNoteMonthArchiveView.as_view(month_format='%m'), + name="list_month" + ), +] -- cgit v1.2.3-70-g09d2