diff --git a/chat_box/apps.py b/chat_box/apps.py index dd90bc1..e49c8ad 100644 --- a/chat_box/apps.py +++ b/chat_box/apps.py @@ -3,3 +3,6 @@ from django.apps import AppConfig class ChatBoxConfig(AppConfig): name = "chat_box" + + def ready(self): + from . import models diff --git a/judge/apps.py b/judge/apps.py index f223d52..4df4c5a 100644 --- a/judge/apps.py +++ b/judge/apps.py @@ -12,7 +12,7 @@ class JudgeAppConfig(AppConfig): # OPERATIONS MAY HAVE SIDE EFFECTS. # DO NOT REMOVE THINKING THE IMPORT IS UNUSED. # noinspection PyUnresolvedReferences - from . import signals, jinja2 # noqa: F401, imported for side effects + from . import models, signals, jinja2 # noqa: F401, imported for side effects from django.contrib.flatpages.models import FlatPage from django.contrib.flatpages.admin import FlatPageAdmin