diff --git a/fbr/config/celery.py b/fbr/config/celery.py index 62cbdf3..fd3f573 100644 --- a/fbr/config/celery.py +++ b/fbr/config/celery.py @@ -4,7 +4,10 @@ from celery.schedules import crontab from dbt_copilot_python.celery_health_check import healthcheck +import django + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") +django.setup() celery_app = Celery("fbr_celery") diff --git a/fbr/config/settings/local.py b/fbr/config/settings/local.py index 5576918..97c194f 100644 --- a/fbr/config/settings/local.py +++ b/fbr/config/settings/local.py @@ -9,6 +9,4 @@ "cache", ] -USE_DEPRECATED_PYTZ = True - INSTALLED_APPS = BASE_APPS + INSTALLED_APPS # noqa