From 8c7b0e1abe1983fac38322c3bc01165c4c693d7e Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 27 Dec 2024 09:47:42 -0600 Subject: jrnl: added a photo essay post type and new url/template/views. also cleared out some old unneeded files --- app/posts/urls/film_urls.py | 24 ------------------------ app/posts/urls/photo_essay_urls.py | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 app/posts/urls/film_urls.py create mode 100644 app/posts/urls/photo_essay_urls.py (limited to 'app/posts/urls') diff --git a/app/posts/urls/film_urls.py b/app/posts/urls/film_urls.py deleted file mode 100644 index 872d3f4..0000000 --- a/app/posts/urls/film_urls.py +++ /dev/null @@ -1,24 +0,0 @@ -from django.urls import path, re_path - -from ..views import film_views as views - -app_name = "film" - -urlpatterns = [ - path( - r'', - views.FilmDetailView.as_view(), - name="detail" - ), - path( - r'/', - views.FilmListView.as_view(), - name="list" - ), - path( - r'', - views.FilmListView.as_view(), - {'page':1}, - name="list" - ), -] 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'', + views.PhotoEssayDetailView.as_view(), + name="detail" + ), + path( + r'/', + views.PhotoEssayListView.as_view(), + name="list" + ), + path( + r'', + views.PhotoEssayListView.as_view(), + {'page':1}, + name="list" + ), +] -- cgit v1.2.3-70-g09d2