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/servermanager/apps.py

10 lines
419 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类用于配置应用的元数据和行为
from django.apps import AppConfig
# 马莹定义名为ServermanagerConfig的应用配置类继承自AppConfig
class ServermanagerConfig(AppConfig):
# 马莹:指定当前应用的名称为'servermanager'
# 马莹这个名称会被Django用于识别应用通常与应用的目录名一致
name = 'servermanager'