add celery basics
This commit is contained in:
parent
78fc67ebdb
commit
e8c1e7006c
4 changed files with 24 additions and 1 deletions
11
src/c3nav/celery.py
Normal file
11
src/c3nav/celery.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
|
||||
from celery import Celery
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'c3nav.settings')
|
||||
|
||||
from django.conf import settings # noqa
|
||||
|
||||
app = Celery('c3nav')
|
||||
app.config_from_object('django.conf:settings')
|
||||
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
Loading…
Add table
Add a link
Reference in a new issue