from celery import Celery import os from celery.schedules import crontab # set the default Django settings module for the 'celery' program. os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "sebn_inventory.settings.production" ) app = Celery("sebn_inventory") app.config_from_object("django.conf:settings", namespace="CELERY") app.autodiscover_tasks()