From ccf09573e6100dbe7aa9fb9e9b83633216168ecc Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Tue, 19 Nov 2024 19:25:02 +0500 Subject: [PATCH] chore: Use env variable for Memcache location --- enterprise_subsidy/settings/devstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise_subsidy/settings/devstack.py b/enterprise_subsidy/settings/devstack.py index 42ad1219..f414794c 100644 --- a/enterprise_subsidy/settings/devstack.py +++ b/enterprise_subsidy/settings/devstack.py @@ -28,7 +28,7 @@ CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', - 'LOCATION': 'enterprise-subsidy.memcache:11211', + 'LOCATION': os.environ.get('MEMCACHE_HOST', 'enterprise-subsidy.memcache:11211'), } }