- Update logging settings
- Add admins setting
This commit is contained in:
Sonny 2020-04-26 21:28:29 +02:00
parent 14d484ea3e
commit 428cd39d13
3 changed files with 75 additions and 6 deletions

View file

@ -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()