<filename>boards/urls.py
from django.urls import path
from . import views

app_name = 'boards'

urlpatterns = [
    # /boards/
    path('', views.BoardListView.as_view(), name='home'),

    # /boards/1/
    path('<int:pk>/', views.TopicsListView.as_view(), name='topics'),

    # /boards/1/new/
    path('<int:pk>/new/', views.new_topic, name='new_topic'),

    # /boards/1/topics/1/
    path('<int:pk>/topics/<int:topic_pk>/', views.PostListView.as_view(), name='posts'),

    # /boards/1/topics/1/reply/
    path('<int:pk>/topics/<int:topic_pk>/reply/', views.reply_topic, name='reply_topic'),

    # /boards/1/topics/1/posts/1/edit/
    path('<int:pk>/topics/<int:topic_pk>/posts/<int:post_pk>/edit/', views.PostUpdateView.as_view(), name='edit_post'),
]
