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

23 lines
564 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.

#tyx
"""
owntracks 应用的配置类
用于配置应用的特定设置
"""
from django.apps import AppConfig
class OwntracksConfig(AppConfig):
"""
owntracks 应用的配置类
继承自Django的AppConfig用于应用级别的配置
"""
# 应用的名称Django使用这个名称来识别应用
name = 'owntracks'
# 可以在此添加其他应用配置,例如:
# verbose_name = "位置追踪" # 在admin中显示的中文名称
# default_auto_field = 'django.db.models.BigAutoField' # 默认主键类型