aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-06-06 16:21:28 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-06-06 16:21:28 +0300
commit4b2d491c2908ec6b677fe494547774bf7d323cb5 (patch)
tree33ded17f17e2113d7236bac6519f54cb7ce8d914 /servo/management
parentff6433f6410f1669e74dcb933250e543f8223cd7 (diff)
downloadServo-4b2d491c2908ec6b677fe494547774bf7d323cb5.tar.gz
Servo-4b2d491c2908ec6b677fe494547774bf7d323cb5.tar.bz2
Servo-4b2d491c2908ec6b677fe494547774bf7d323cb5.zip
Fix django.core.exceptions.AppRegistryNotReady in scheduler
Diffstat (limited to 'servo/management')
-rw-r--r--servo/management/commands/scheduler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/servo/management/commands/scheduler.py b/servo/management/commands/scheduler.py
index 18018e5..c400b7b 100644
--- a/servo/management/commands/scheduler.py
+++ b/servo/management/commands/scheduler.py
@@ -1,9 +1,12 @@
from datetime import datetime
-import django_rq
+import django
+
from django.core.management.base import BaseCommand
from django_rq.management.commands import rqscheduler
+import django_rq
+django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
from servo.tasks import check_mail