takahe/core/apps.py

13 lines
299 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:
jsonld.set_document_loader(builtin_document_loader)