Make Redis optional
This commit is contained in:
parent
7ecd90c407
commit
c2a7957095
@ -177,7 +177,7 @@ STATIC_ROOT = "compiledstatic/"
|
|||||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
if not DEBUG:
|
if not DEBUG and os.getenv("REDIS_CACHE_LOCATION") is not None:
|
||||||
CACHES = {
|
CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "redis_cache.RedisCache",
|
"BACKEND": "redis_cache.RedisCache",
|
||||||
|
Loading…
Reference in New Issue
Block a user