11 lines
269 B
Python
11 lines
269 B
Python
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()
|