diff options
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" ), |