Carpeta inicial añadida
This commit is contained in:
10
arches/celery.py
Normal file
10
arches/celery.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
import os
|
||||
from celery import Celery
|
||||
|
||||
ARCHES_PROJECT = os.getenv('ARCHES_PROJECT')
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', f'{ARCHES_PROJECT}.settings')
|
||||
app = Celery(ARCHES_PROJECT)
|
||||
app.config_from_object('django.conf:settings', namespace='CELERY')
|
||||
app.autodiscover_tasks()
|
||||
Reference in New Issue
Block a user