lib.itmens/catalog/apps.py

19 lines
642 B
Python
Raw Normal View History

from django.apps import AppConfig
class CatalogConfig(AppConfig):
2022-12-29 23:57:02 -05:00
default_auto_field = "django.db.models.BigAutoField"
name = "catalog"
2022-12-15 17:29:35 -05:00
def ready(self):
# load key modules in proper order, make sure class inject and signal works as expected
2025-01-11 19:58:27 -05:00
from catalog import api, models, sites # noqa
from catalog.models import init_catalog_audit_log, init_catalog_search_models
2025-01-11 19:58:27 -05:00
from journal import models as journal_models # noqa
2022-12-31 17:16:47 -05:00
# register cron jobs
2025-01-11 19:58:27 -05:00
from catalog.jobs import DiscoverGenerator, PodcastUpdater # noqa
2022-12-31 17:16:47 -05:00
init_catalog_search_models()
2023-06-18 23:13:30 -04:00
init_catalog_audit_log()