From 41345c8271972f9be375b8bbad0d6ce20bc23bfc Mon Sep 17 00:00:00 2001 From: Hemanth Nakkina Date: Tue, 2 Jan 2024 08:49:27 +0530 Subject: [PATCH] [horizon-k8s] comment memcache configuration Comment mecache configuration in local_settings.py.j2 template. Without this change, the db sync failed as memcache package is not installed. Change-Id: I452c944276b1ea6163a8e3bb2dada1fd8229edd4 --- .../horizon-k8s/src/templates/local_settings.py.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charms/horizon-k8s/src/templates/local_settings.py.j2 b/charms/horizon-k8s/src/templates/local_settings.py.j2 index 301b1eef..054dde0e 100644 --- a/charms/horizon-k8s/src/templates/local_settings.py.j2 +++ b/charms/horizon-k8s/src/templates/local_settings.py.j2 @@ -145,12 +145,12 @@ SECRET_KEY = "{{ options.secret }}" # of the django development server, you will have to login again. To use # memcached set CACHES to something like -CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', - 'LOCATION': '127.0.0.1:11211', - }, -} +#CACHES = { +# 'default': { +# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', +# 'LOCATION': '127.0.0.1:11211', +# }, +#} {% if database.database_host -%} SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' DATABASES = {