summaryrefslogtreecommitdiff
path: root/app/posts/urls/guide_urls_old.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/urls/guide_urls_old.py')
-rw-r--r--app/posts/urls/guide_urls_old.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/posts/urls/guide_urls_old.py b/app/posts/urls/guide_urls_old.py
new file mode 100644
index 0000000..d43d76a
--- /dev/null
+++ b/app/posts/urls/guide_urls_old.py
@@ -0,0 +1,29 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "guides"
+
+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.GuidesListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.GuidesListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]