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.
# Zxy导入os模块,用于操作路径
importos
# Zxy导入日志模块
importlogging
# Zxy导入Django的配置模块
fromdjango.confimportsettings
# Zxy获取日志记录器
logger=logging.getLogger(__name__)
# Zxy动态加载插件
defload_plugins():
"""
Dynamically loads and initializes plugins from the 'plugins' directory.
This function is intended to be called when the Django app registry is ready.