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.
from django.apps import AppConfig
class OwntracksConfig(AppConfig):
# 定义Django应用的配置类,用于配置应用的元数据和行为
# 指定应用的名称,这是应用的唯一标识
# 在Django项目中,通过该名称引用此应用(如在INSTALLED_APPS中注册、迁移依赖等)
name = 'owntracks'
# 可选配置(当前未设置):
# verbose_name:应用的可读名称,用于在admin后台等位置显示
# 例如:verbose_name = '位置追踪日志'
# default_auto_field:指定模型默认的主键字段类型
# 例如:default_auto_field = 'django.db.models.BigAutoField'