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

13 lines
666 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.

#gjl
from django.apps import AppConfig
# OwntracksConfig 是 Django 应用 'owntracks' 的配置类。
# 它继承自 Django 的 AppConfig用于定义该应用的配置信息。
# 当 Django 启动时,会自动发现并加载此配置,以正确初始化该应用。
class OwntracksConfig(AppConfig):
# gjl name 属性指定了该 Django 应用的完整 Python 导入路径。
# gjl 这个路径告诉 Django 如何导入这个应用。在这个例子中,
# gjl 表示该应用位于 PYTHONPATH 下可以直接导入的 'owntracks' 模块(或包)中。
# gjl 这个值通常与应用所在目录的名称一致。
name = 'owntracks'