diff options
Diffstat (limited to 'apps/forum/urls.py')
-rw-r--r-- | apps/forum/urls.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/forum/urls.py b/apps/forum/urls.py index 79e2e0d..3cfd250 100644 --- a/apps/forum/urls.py +++ b/apps/forum/urls.py @@ -2,11 +2,13 @@ from django.urls import path from .views import ( TopicListView, + TopicDetailView, ) app_name = "forum" urlpatterns = [ - path(r't/', TopicListView.as_view(), name='topic-list',), - path(r'', TopicListView.as_view(), name='topic-redirect',), + path(r'', TopicListView.as_view(), name='topic-list',), + path(r'c/<str:slug>', TopicListView.as_view(), name='category-detail',), + path(r't/<str:slug>/<int:pk>', TopicDetailView.as_view(), name='topic-detail',), ] |