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

8 lines
447 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应用程序配置基类 #zqx: 引入Django的AppConfig基类用于创建应用配置类
from django.apps import AppConfig
# 定义owntracks应用的配置类继承自AppConfig #zqx: 创建OwntracksConfig类继承自AppConfig用于配置owntracks应用
class OwntracksConfig(AppConfig):
# 设置应用的名称为'owntracks' #zqx: 设置name属性为'owntracks',指定应用的名称
name = 'owntracks'