Add Celery configuration and update requirements.txt
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from celery import Celery
|
||||
import os
|
||||
|
||||
app = Celery('proyecto')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto.settings')
|
||||
app.config_from_object('django.conf:settings', namespace="CELERY")
|
||||
|
||||
app.autodiscover_tasks()
|
||||
|
||||
from tienda import tasks as tienda_tasks
|
||||
Reference in New Issue
Block a user