mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
19 lines
509 B
Python
19 lines
509 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class PluginsConfig(AppConfig):
|
|
name = "apps.plugins"
|
|
verbose_name = "Plugins"
|
|
|
|
def ready(self):
|
|
# Perform plugin discovery on startup
|
|
try:
|
|
from .loader import PluginManager
|
|
|
|
PluginManager.get().discover_plugins()
|
|
except Exception:
|
|
# Avoid breaking startup due to plugin errors
|
|
import logging
|
|
|
|
logging.getLogger(__name__).exception("Plugin discovery failed during app ready")
|
|
|