From 35ac29dfe6d563f99664976d9c6897799d2dadde Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 30 Dec 2022 10:16:59 -0600 Subject: posts: reverted to calling them essays and redid a few things to make it easier to see what's going on --- app/posts/urls/essay_urls.py | 29 +++++++++++++++++++++++++++++ app/posts/urls/notes_urls.py | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 app/posts/urls/essay_urls.py delete mode 100644 app/posts/urls/notes_urls.py (limited to 'app/posts/urls') diff --git a/app/posts/urls/essay_urls.py b/app/posts/urls/essay_urls.py new file mode 100644 index 0000000..7eb872d --- /dev/null +++ b/app/posts/urls/essay_urls.py @@ -0,0 +1,29 @@ +from django.urls import path, re_path + +from ..views import essay_views as views + +app_name = "essays" + +urlpatterns = [ + path( + r'', + views.EssayDetailView.as_view(), + name="detail" + ), + path( + r'.txt', + views.EssayDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'/', + views.EssayListView.as_view(), + name="list" + ), + path( + r'', + views.EssayListView.as_view(), + {'page':1}, + name="list" + ), +] diff --git a/app/posts/urls/notes_urls.py b/app/posts/urls/notes_urls.py deleted file mode 100644 index 6fb9fa1..0000000 --- a/app/posts/urls/notes_urls.py +++ /dev/null @@ -1,29 +0,0 @@ -from django.urls import path, re_path - -from ..views import guide_views as views - -app_name = "notes" - -urlpatterns = [ - path( - r'', - views.PostDetailView.as_view(), - name="detail" - ), - path( - r'.txt', - views.PostDetailViewTXT.as_view(), - name="detail-txt" - ), - path( - r'/', - views.NotesListView.as_view(), - name="list" - ), - path( - r'', - views.NotesListView.as_view(), - {'page':1}, - name="list" - ), -] -- cgit v1.2.3-70-g09d2