summaryrefslogtreecommitdiff
path: root/app/posts/urls
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-03-23 21:32:16 -0400
committerluxagraf <sng@luxagraf>2021-03-23 21:32:16 -0400
commitcb7c6ae216ecd4eab95b48af8d8cc0ca15c84379 (patch)
treebd77e0313922adeda92b6a698c7a190d42c15962 /app/posts/urls
parent30869b14bcd9186f6bc359ea4e55a64e326f1496 (diff)
added RANGE to post types
Diffstat (limited to 'app/posts/urls')
-rw-r--r--app/posts/urls/range_urls.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/posts/urls/range_urls.py b/app/posts/urls/range_urls.py
new file mode 100644
index 0000000..7b29569
--- /dev/null
+++ b/app/posts/urls/range_urls.py
@@ -0,0 +1,20 @@
+from django.urls import path, re_path, include
+from django.views.generic.base import RedirectView
+
+from ..views import range_views as views
+
+app_name = "range"
+
+urlpatterns = [
+ path(
+ r'<str:slug>',
+ views.RangeDetailView.as_view(),
+ name="detail"
+ ),
+ path(
+ r'',
+ views.RangeListView.as_view(),
+ {'page':1},
+ name="range-base"
+ ),
+]