diff options
Diffstat (limited to 'app/posts/urls')
-rw-r--r-- | app/posts/urls/range_urls.py | 20 |
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" + ), +] |