diff options
author | luxagraf <sng@luxagraf.net> | 2024-03-06 11:46:03 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-03-06 11:46:03 -0600 |
commit | e8b218274167346b942927ee146d096d48dfebf3 (patch) | |
tree | c51b95d5e0223d47ed3b613c162dcb6af2c2771e /app/posts/urls/essay_urls.py | |
parent | 89e3735883c03239270d33a3dc841a43f789f17e (diff) |
range: added new paths for essays
Diffstat (limited to 'app/posts/urls/essay_urls.py')
-rw-r--r-- | app/posts/urls/essay_urls.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/posts/urls/essay_urls.py b/app/posts/urls/essay_urls.py index 7eb872d..90a087c 100644 --- a/app/posts/urls/essay_urls.py +++ b/app/posts/urls/essay_urls.py @@ -6,7 +6,18 @@ app_name = "essays" urlpatterns = [ path( - r'<str:slug>', + r'<str:topic>/<int:page>/', + views.EssayCategoryList.as_view(), + name="category-detail" + ), + path( + r'<str:topic>/', + views.EssayCategoryList.as_view(), + {'page':1}, + name="category-detail" + ), + path( + r'<str:cat>/<str:slug>', views.EssayDetailView.as_view(), name="detail" ), |