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.
Django/doc/blog/apps.py

9 lines
442 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 导入Django的AppConfig类该类用于定义单个Django应用的配置信息
from django.apps import AppConfig
# 定义当前应用blog的配置类继承自Django提供的AppConfig基类
class BlogConfig(AppConfig):
# 配置当前应用的唯一标识名称即应用目录名Django通过该名称识别和管理应用
# 这里'blog'表示当前配置对应的是名为'blog'的Django应用
name = 'blog'