define celery settings
This commit is contained in:
@@ -2,11 +2,12 @@ from __future__ import absolute_import, unicode_literals
|
||||
import os
|
||||
import django
|
||||
from celery import Celery
|
||||
from django.conf import settings
|
||||
|
||||
# set the default Django settings module for the 'celery' program.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'caromserver.settings')
|
||||
|
||||
app = Celery('caromserver')
|
||||
app = Celery(settings.CELERY_PREFIX)
|
||||
|
||||
# Using a string here means the worker don't have to serialize
|
||||
# the configuration object to child processes.
|
||||
|
||||
Reference in New Issue
Block a user