评论接口 添加评论 创建应用,在项目目录下 python manage.py startapp comments 注册应用 blogproj/setttings.py INSTALLED_APPS = [ ... 'comments.apps.CommentsConfig', ] 创建模型comments/models.py from django.db import models from django