Commit 41fd6097 authored by Arnaud Fabre's avatar Arnaud Fabre

memopol settings

parent 20cd39ca
......@@ -22,17 +22,17 @@ from __future__ import absolute_import
import os
from django.conf import settings
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'memopol.settings')
from django.conf import settings
app = Celery(
'memopol',
broker='redis://localhost',
backend='redis://localhost'
broker='redis://localhost/{}'.format(settings.REDIS_DB),
backend='redis://localhost/{}'.format(settings.REDIS_DB)
)
# Using a string here means the worker will not have to
......
......@@ -43,15 +43,14 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = get_param('secret_key')
DEBUG = get_param('debug')
DEBUG = get_param('debug')
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = []
COMPOTISTA_SERVER = get_param('compotista_server')
TOUTATIS_SERVER = get_param('toutatis_server')
REDIS_DB = get_param('redis_db')
# Application definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment