Stub out cookie/privacy policy. Add memcached to docker image

This commit is contained in:
Ross
2022-11-21 15:00:52 +00:00
parent 0b90308394
commit 653baa85ff
8 changed files with 40 additions and 3 deletions
+2 -1
View File
@@ -59,6 +59,7 @@ INSTALLED_APPS = [
"dal",
"dal_select2",
"dal_queryset_sequence",
"cookie_consent",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@@ -217,7 +218,7 @@ CORS_ORIGIN_ALLOW_ALL = True
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
"LOCATION": "127.0.0.1:11211",
"LOCATION": f'{os.environ.get("MEMCACHE_HOST", "127.0.0.1")}:11211',
#'OPTIONS': {
# 'server_max_value_length': 1024 * 1024 * 10
# }