takahe/core/apps.py

13 lines
299 B
Python
Raw Permalink Normal View History

2022-11-05 20:17:27 +00:00
from django.apps import AppConfig
2022-11-05 23:51:54 +00:00
from pyld import jsonld
from core.ld import builtin_document_loader
2022-11-05 20:17:27 +00:00
class CoreConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "core"
2022-11-05 23:51:54 +00:00
def ready(self) -> None:
jsonld.set_document_loader(builtin_document_loader)