diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-13 22:11:28 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-13 22:11:28 -0500 |
commit | b2434dcba142961b4a4b67780cf64e01d0908bf5 (patch) | |
tree | a9d91844efe30952177c28e329f9f652517dfbe3 /app/posts/urls | |
parent | 2f9701b600493f1172c15447ba5ce4f363b49136 (diff) |
migrated jrnl to posts, fixed some bugs in pages build, RSS feed, and
Sitemap
Diffstat (limited to 'app/posts/urls')
-rw-r--r-- | app/posts/urls/jrnl_urls.py | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app/posts/urls/jrnl_urls.py b/app/posts/urls/jrnl_urls.py new file mode 100644 index 0000000..d7f0fb1 --- /dev/null +++ b/app/posts/urls/jrnl_urls.py @@ -0,0 +1,60 @@ +from django.urls import path, re_path + +from ..views import jrnl_views as 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.JrnlDetailViewTXT.as_view(), + name="detail-txt" + ), + re_path( + r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$', + views.JrnlDetailView.as_view(), + name="detail" + ), + re_path( + r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/$', + views.JrnlMonthArchiveView.as_view(month_format='%m'), + name="list_month" + ), + re_path( + r'(?P<year>\d{4})/$', + views.JrnlYearArchiveView.as_view(), + name="list_year" + ), + re_path( + r'^(?P<page>\d+)/$', + views.JrnlListView.as_view(), + name="list" + ), + path( + r'latest/', + views.JrnlLatestView.as_view(), + name="latest" + ), + re_path( + r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', + views.JrnlCountryListView.as_view(), + name="list_country" + ), + re_path( + r'^(?P<slug>[-\w]+)/$', + views.JrnlCountryListView.as_view(), + {'page':1}, + name="list_country" + ), + re_path( + r'', + views.JrnlListView.as_view(), + {'page':1}, + name="list" + ), +] |