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 DjangoblogAppConfig(AppConfig):
"""Djangoblog应用的配置类"""
# 设置默认的自动主键字段类型为BigAutoField(64位自增整数)
default_auto_field = 'django.db.models.BigAutoField'
# 指定应用名称
name = 'djangoblog'
def ready(self):
"""应用准备就绪时执行的方法"""
# 调用父类的ready方法
super().ready()
# 导入并加载插件
# 这里在应用启动时自动加载所有插件
from .plugin_manage.loader import load_plugins
load_plugins()