diff options
author | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
commit | bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch) | |
tree | 6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/posts/urls/review_urls.py |
initial commit
Diffstat (limited to 'app/posts/urls/review_urls.py')
-rw-r--r-- | app/posts/urls/review_urls.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/posts/urls/review_urls.py b/app/posts/urls/review_urls.py new file mode 100644 index 0000000..6b78e43 --- /dev/null +++ b/app/posts/urls/review_urls.py @@ -0,0 +1,29 @@ +from django.urls import path, re_path + +from ..views import guide_views as views + +app_name = "reviews" + +urlpatterns = [ + path( + r'<str:slug>', + views.PostDetailView.as_view(), + name="review-detail" + ), + path( + r'<str:slug>.txt', + views.PostDetailViewTXT.as_view(), + name="review-detail-txt" + ), + path( + r'<int:page>/', + views.ReviewsListView.as_view(), + name="review-list" + ), + path( + r'', + views.ReviewsListView.as_view(), + {'page':1}, + name="review-list" + ), +] |