summaryrefslogtreecommitdiff
path: root/app/unused_apps/guides/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-10-07 15:27:00 -0400
committerluxagraf <sng@luxagraf.net>2019-10-07 15:27:00 -0400
commit4fec1159612fad17a7385ba8aadc4a4b165d5aa9 (patch)
treed413ea25e7c09efb29c4e80b8ffb3ca7c229a514 /app/unused_apps/guides/urls.py
parent9cdfb6ec377fa534c1203c1af46662c2a1ff6f61 (diff)
added new posts stuff and changed name of src posts
Diffstat (limited to 'app/unused_apps/guides/urls.py')
-rw-r--r--app/unused_apps/guides/urls.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/unused_apps/guides/urls.py b/app/unused_apps/guides/urls.py
new file mode 100644
index 0000000..c91a5b5
--- /dev/null
+++ b/app/unused_apps/guides/urls.py
@@ -0,0 +1,34 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "guides"
+
+urlpatterns = [
+ path(
+ r'',
+ views.GuideListView.as_view(),
+ {'page': 1},
+ name="list"
+ ),
+ path(
+ r'<int:page>/',
+ views.GuideListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'<str:category>/<str:slug>',
+ views.GuideDetailView.as_view(),
+ name="detail"
+ ),
+ path(
+ r'<str:category>/<str:slug>',
+ views.GuideDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ path(
+ r'<str:category>',
+ views.GuideCatListView.as_view(),
+ name="list-cat"
+ ),
+]