0.2 release
This commit is contained in:
parent
747c6416d4
commit
18479a3f56
340 changed files with 27295 additions and 0 deletions
14
src/newsreader/celery.py
Normal file
14
src/newsreader/celery.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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.autodiscover_tasks()
|
||||
Loading…
Add table
Add a link
Reference in a new issue