This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/core/apps.py

16 lines
384 B
Python
Raw Normal View History

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