<gh_stars>10-100
from django.urls import path
from .views import CommentCreateView, CommentDeleteView, CommentUpdateView

app_name = 'comments'
urlpatterns = [
    path(
      '<int:id>/comments/',
      CommentCreateView.as_view(),
      name='comments-create'
    ),
    path(
      '<int:post_id>/comments/<int:comment_id>/',
      CommentDeleteView.as_view(),
      name='comments-delete'
    ),
    path(
      '<int:post_id>/comments/<int:comment_id>/update/',
      CommentUpdateView.as_view(),
      name='comments-update'
    )
]

from django.urls import path
from .views import CommentCreateView, CommentDeleteView, CommentUpdateView

app_name = 'comments'
urlpatterns = [
    path(
      '<int:id>/comments/',
      CommentCreateView.as_view(),
      name='comments-create'
    ),
    path(
      '<int:post_id>/comments/<int:comment_id>/',
      CommentDeleteView.as_view(),
      name='comments-delete'
    ),
    path(
      '<int:post_id>/comments/<int:comment_id>/update/',
      CommentUpdateView.as_view(),
      name='comments-update'
    )
]