Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
41fd6097
Commit
41fd6097
authored
Jul 06, 2015
by
Arnaud Fabre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memopol settings
parent
20cd39ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
memopol/celery.py
memopol/celery.py
+4
-4
memopol/settings.py
memopol/settings.py
+2
-3
No files found.
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