define celery settings
This commit is contained in:
parent
e84b2f54a9
commit
9a18080db9
@ -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.
|
||||
|
@ -162,6 +162,8 @@ URL_LOCATION_PROCESSOR = 'http://127.0.0.1:8000/billard/process_locationdata'
|
||||
|
||||
STATIC_ROOT = "/srv/carom/carom-server/static/"
|
||||
|
||||
CELERY_PREFIX = 'carom'
|
||||
|
||||
try:
|
||||
from local_settings import *
|
||||
except ImportError:
|
||||
|
Loading…
Reference in New Issue
Block a user