<gh_stars>0
from django.urls import path
from .views import TopicListView, TopicDetailView, TopicCreateView, TopicUpdateView, TopicDeleteView
urlpatterns = [
    path("post/<int:pk>/delete/", TopicDeleteView.as_view(), name="post_delete"),
    path("post/<int:pk>/edit/", TopicUpdateView.as_view(), name="post_edit"),
    path("post/new/", TopicCreateView.as_view(), name="post_new"),
    path("post/<int:pk>/", TopicDetailView.as_view(), name="post_detail"),
    path("", TopicListView.as_view(), name ="home")
]

from django.urls import path
from .views import TopicListView, TopicDetailView, TopicCreateView, TopicUpdateView, TopicDeleteView
urlpatterns = [
    path("post/<int:pk>/delete/", TopicDeleteView.as_view(), name="post_delete"),
    path("post/<int:pk>/edit/", TopicUpdateView.as_view(), name="post_edit"),
    path("post/new/", TopicCreateView.as_view(), name="post_new"),
    path("post/<int:pk>/", TopicDetailView.as_view(), name="post_detail"),
    path("", TopicListView.as_view(), name ="home")
]