2022-12-07 19:09:05 -05:00
|
|
|
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
|
2023-08-10 11:27:31 -04:00
|
|
|
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
|
|
|
|
2023-12-03 11:38:16 -05:00
|
|
|
# register cron jobs
|
2025-01-11 19:58:27 -05:00
|
|
|
from catalog.jobs import DiscoverGenerator, PodcastUpdater # noqa
|
2023-12-03 11:38:16 -05:00
|
|
|
|
2022-12-31 17:16:47 -05:00
|
|
|
init_catalog_search_models()
|
2023-06-18 23:13:30 -04:00
|
|
|
init_catalog_audit_log()
|