diff options
Diffstat (limited to 'app/posts/urls/guide_urls.py')
-rw-r--r-- | app/posts/urls/guide_urls.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/posts/urls/guide_urls.py b/app/posts/urls/guide_urls.py index f3891e3..5e2b37e 100644 --- a/app/posts/urls/guide_urls.py +++ b/app/posts/urls/guide_urls.py @@ -10,16 +10,20 @@ urlpatterns = [ r'', views.GuideListView.as_view(), {'page':1}, - name="guide-base" + name="guide-list" ), path( - r'<str:topic>/', - views.GuideTopicListView.as_view(), - {'page':1}, - name="guides-by-topic" + r'<int:page>/', + views.GuideListView.as_view(), + name="guide-list" ), path( r'<str:topic>/<str:slug>', + views.GuidePostDetailView.as_view(), + name="guide-post-detail" + ), + path( + r'<str:slug>/', views.GuideDetailView.as_view(), name="guide-detail" ), |