Revert "fix REDIS_URL config instead of environment variable"

This commit is contained in:
KoalaSat
2025-05-11 14:47:06 +00:00
committed by GitHub
parent 3b60ae7814
commit 18b3b25e63

View File

@ -7,7 +7,7 @@ from celery import Celery
from celery.schedules import crontab
# You can use rabbitmq instead here.
BASE_REDIS_URL = config("REDIS_URL", default="redis://localhost:6379")
BASE_REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379")
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "robosats.settings")