aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management/commands/scheduler.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/management/commands/scheduler.py')
-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