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的apps模块导入AppConfig类,用于定义应用的配置信息
from django.apps import AppConfig
class AccountsConfig(AppConfig):
"""
accounts应用的配置类,用于设置应用的基本信息
继承自Django的AppConfig,通过此类可以配置应用的名称、默认自动生成的主键类型等元数据
# 定义应用的名称,Django通过此名称识别该应用,与项目settings.py中INSTALLED_APPS里的配置对应
name = 'accounts'