diff --git a/django_code/core/settings.py b/django_code/core/settings.py index f0dcc32..d0c6b29 100644 --- a/django_code/core/settings.py +++ b/django_code/core/settings.py @@ -206,10 +206,12 @@ STATIC_ROOT = BASE_DIR / "templates/static" DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # # Celery settings -CELERY_BROKER_URL = "redis://django-redis-svc:6379" -CELERY_RESULT_BACKEND = "redis://django-redis-svc:6379" + +CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL') +CELERY_RESULT_BACKEND = os.environ.get('CELERY_BROKER_URL') CELERY_IMPORTS = [ 'apps.stash_management.apps', # This line imports the tasks.py file + 'apps.random_simpsons.utils' # Add other app tasks here if needed ]