diff --git a/urls.py b/urls.py new file mode 100644 index 0000000..88a69b5 --- /dev/null +++ b/urls.py @@ -0,0 +1,14 @@ +from django.urls import path + +from . import views + +#zr 定义评论应用的命名空间 +app_name = "comments" +#zr 评论模块URL路由配置 +urlpatterns = [ + #zr 文章评论提交路由 + path( + 'article//postcomment', + views.CommentPostView.as_view(), + name='postcomment'), +]