You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DjangoBlog/urls.py

15 lines
336 B

from django.urls import path
from . import views
#zr 定义评论应用的命名空间
app_name = "comments"
#zr 评论模块URL路由配置
urlpatterns = [
#zr 文章评论提交路由
path(
'article/<int:article_id>/postcomment',
views.CommentPostView.as_view(),
name='postcomment'),
]