takahe/core/apps.py

16 lines
384 B
Python
Raw Normal View History

2022-11-05 13:17:27 -07:00
from django.apps import AppConfig
2022-11-05 16:51:54 -07:00
from pyld import jsonld
from core.ld import builtin_document_loader
2022-11-05 13:17:27 -07:00
class CoreConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "core"
2022-11-05 16:51:54 -07:00
def ready(self) -> None:
2022-11-17 18:16:34 -08:00
from core.models import Config
Config.system = Config.load_system()
2022-11-05 16:51:54 -07:00
jsonld.set_document_loader(builtin_document_loader)