Skip to content

Commit

Permalink
Add fix from PR #101
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperpONS committed Feb 12, 2025
1 parent 9968ad3 commit 9a51654
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cms/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@
DATABASES["read_replica"] = copy.deepcopy(DATABASES["default"])

# Redis
REDIS_URL = "redis://localhost:6379"
REDIS_URL = env.get("REDIS_URL", "redis://localhost:6379") # noqa: F405
CACHES["default"] = { # noqa: F405
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": REDIS_URL,
"OPTIONS": {**redis_options}, # noqa: F405
}

# Django Defender
ENABLE_DJANGO_DEFENDER = False
Expand Down

0 comments on commit 9a51654

Please sign in to comment.