from django.apps import AppConfig #评论应用的配置类 class CommentsConfig(AppConfig): name = 'comments'# 指定应用名称为'comments',对应安装的应用名