Gallery-Archivist/backend/core/celery.py

12 lines
269 B
Python
Raw Normal View History

2025-01-23 22:52:48 +01:00
import os
from celery import Celery
# from celery.schedules import crontab
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
app = Celery("Gallery Archivis")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()