Skip to content

Commit 86b2d1e

Browse files
committed
Create celery app in test settings to pick up settings
1 parent 3b7fe0d commit 86b2d1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

celery_haystack/test_settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import os
22

3+
from celery import Celery
4+
5+
app = Celery('celery_haystack')
6+
app.config_from_object('django.conf:settings')
7+
8+
39
DEBUG = True
410

511
TEST_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests'))

0 commit comments

Comments
 (0)