mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-15 12:46:38 +00:00
c7883cd615
To get the app working again I ran resetdb, let it crash in initdb, then ran the migration, then re-ran initdb
12 lines
295 B
Python
12 lines
295 B
Python
''' background tasks '''
|
|
import os
|
|
from celery import Celery
|
|
|
|
from bookwyrm import settings
|
|
|
|
# set the default Django settings module for the 'celery' program.
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celerywyrm.settings')
|
|
app = Celery(
|
|
'tasks',
|
|
broker=settings.CELERY_BROKER,
|
|
)
|