Skip to content

Commit

Permalink
Django 1.10: Setup django before running queue processors.
Browse files Browse the repository at this point in the history
  • Loading branch information
umairwaheed authored and timabbott committed Nov 15, 2016
1 parent 7d51efe commit 3d38003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/run-dev-queue-processors
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

import sys
import os
import django
import subprocess

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
django.setup()

from zerver.worker.queue_processors import get_active_worker_queues

queues = get_active_worker_queues()
Expand Down

0 comments on commit 3d38003

Please sign in to comment.