From 171e38c61daced0b97081a226bc2beb215730509 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 29 Dec 2022 19:16:22 -0600 Subject: posts: changed essays to notes. less pretentious. --- app/posts/urls/essay_urls.py | 29 ----------------------------- app/posts/urls/notes_urls.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 app/posts/urls/essay_urls.py create 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 deleted file mode 100644 index 3f0d7d7..0000000 --- a/app/posts/urls/essay_urls.py +++ /dev/null @@ -1,29 +0,0 @@ -from django.urls import path, re_path - -from ..views import guide_views as views - -app_name = "essays" - -urlpatterns = [ - path( - r'', - views.PostDetailView.as_view(), - name="detail" - ), - path( - r'.txt', - views.PostDetailViewTXT.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 new file mode 100644 index 0000000..6fb9fa1 --- /dev/null +++ b/app/posts/urls/notes_urls.py @@ -0,0 +1,29 @@ +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