summaryrefslogtreecommitdiff
path: root/app/posts/urls/notes_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/urls/notes_urls.py')
-rw-r--r--app/posts/urls/notes_urls.py29
1 files changed, 29 insertions, 0 deletions
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'<str:slug>',
+ views.PostDetailView.as_view(),
+ name="detail"
+ ),
+ path(
+ r'<str:slug>.txt',
+ views.PostDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ path(
+ r'<int:page>/',
+ views.NotesListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.NotesListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]