summaryrefslogtreecommitdiff
path: root/bak/unused_apps/jrnl/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bak/unused_apps/jrnl/urls.py')
-rw-r--r--bak/unused_apps/jrnl/urls.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/bak/unused_apps/jrnl/urls.py b/bak/unused_apps/jrnl/urls.py
new file mode 100644
index 0000000..caf1935
--- /dev/null
+++ b/bak/unused_apps/jrnl/urls.py
@@ -0,0 +1,61 @@
+from django.urls import path, re_path
+from django.views.generic.base import RedirectView
+
+from . import views
+
+app_name = "jrnl"
+
+urlpatterns = [
+ path(
+ r'feed.xml',
+ views.JrnlRSSFeedView(),
+ name="feed"
+ ),
+ re_path(
+ r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+).txt$',
+ views.EntryDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ re_path(
+ r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$',
+ views.EntryDetailView.as_view(),
+ name="detail"
+ ),
+ re_path(
+ r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/$',
+ views.EntryMonthArchiveView.as_view(month_format='%m'),
+ name="list_month"
+ ),
+ re_path(
+ r'(?P<year>\d{4})/$',
+ views.EntryYearArchiveView.as_view(),
+ name="list_year"
+ ),
+ re_path(
+ r'^(?P<page>\d+)/$',
+ views.EntryList.as_view(),
+ name="list"
+ ),
+ path(
+ r'latest/',
+ views.JrnlLatestView.as_view(),
+ name="latest"
+ ),
+ re_path(
+ r'(?P<slug>[-\w]+)/(?P<page>\d+)/$',
+ views.EntryCountryList.as_view(),
+ name="list_country"
+ ),
+ re_path(
+ r'^(?P<slug>[-\w]+)/$',
+ views.EntryCountryList.as_view(),
+ {'page':1},
+ name="list_country"
+ ),
+ re_path(
+ r'',
+ views.EntryList.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]