summaryrefslogtreecommitdiff
path: root/app/posts/urls/photo_essay_urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-12-27 09:47:42 -0600
committerluxagraf <sng@luxagraf.net>2024-12-27 09:47:42 -0600
commit8c7b0e1abe1983fac38322c3bc01165c4c693d7e (patch)
tree2f91e32f0dae419fe46f773fe9a11817b809fcf0 /app/posts/urls/photo_essay_urls.py
parent05b386315c09c735201566cf8945fc8ff78d2741 (diff)
jrnl: added a photo essay post type and new url/template/views. also cleared out some old unneeded files
Diffstat (limited to 'app/posts/urls/photo_essay_urls.py')
-rw-r--r--app/posts/urls/photo_essay_urls.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/posts/urls/photo_essay_urls.py b/app/posts/urls/photo_essay_urls.py
new file mode 100644
index 0000000..e69f07c
--- /dev/null
+++ b/app/posts/urls/photo_essay_urls.py
@@ -0,0 +1,24 @@
+from django.urls import path, re_path
+
+from ..views import photo_essay_views as views
+
+app_name = "photo_essay"
+
+urlpatterns = [
+ path(
+ r'<str:slug>',
+ views.PhotoEssayDetailView.as_view(),
+ name="detail"
+ ),
+ path(
+ r'<int:page>/',
+ views.PhotoEssayListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.PhotoEssayListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]