This commit is contained in:
Trey t
2023-07-27 19:16:44 -05:00
parent 67372cc8ab
commit 3df5ec6acc

View File

@@ -169,6 +169,17 @@ if os.environ.get("DATABASE_URL"):
}
}
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": [os.environ.get('REDIS_URL', 'redis://localhost:6379')],
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient"
},
}
}
CELERY_BROKER_URL = os.environ.get("REDIS_URL", "") + "/1"
CELERY_RESULT_BACKEND = os.environ.get("REDIS_URL", "") + "/1"