Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TAlone
memopol
Commits
41fd6097
Commit
41fd6097
authored
Jul 06, 2015
by
Arnaud Fabre
Browse files
memopol settings
parent
20cd39ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
memopol/celery.py
View file @
41fd6097
...
...
@@ -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
...
...
memopol/settings.py
View file @
41fd6097
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment