0.2.2.1
- Update logging settings - Add admins setting
This commit is contained in:
parent
14d484ea3e
commit
428cd39d13
3 changed files with 75 additions and 6 deletions
|
|
@ -3,12 +3,8 @@ import os
|
|||
from celery import Celery
|
||||
|
||||
|
||||
# note: this should be consistent with the setting from manage.py
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newsreader.conf.dev")
|
||||
|
||||
# note: use the --workdir flag when running from different directories
|
||||
app = Celery("newsreader")
|
||||
|
||||
app.config_from_object("django.conf:settings")
|
||||
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
app.autodiscover_tasks()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue