urls.py 299 B

123456789
  1. from django.urls import path
  2. from . import views
  3. app_name = "comments"
  4. urlpatterns = [
  5. # url(r'^po456stcomment/(?P<article_id>\d+)$', views.CommentPostView.as_view(), name='postcomment'),
  6. path('article/<int:article_id>/postcomment', views.CommentPostView.as_view(), name='postcomment'),
  7. ]