diff --git a/defaults/main.yml b/defaults/main.yml index 3bb22b89..8b80ff28 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -146,7 +146,7 @@ horizon_service_name: horizon horizon_session_engine: 'django.contrib.sessions.backends.cache' horizon_session_caches: default: - BACKEND: 'django.core.cache.backends.memcached.MemcachedCache' + BACKEND: 'django.core.cache.backends.memcached.PyMemcacheCache' LOCATION: "{{ horizon_memcached_servers.split(',') }}" horizon_session_timeout: 1800 diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index cf3f4cdc..904f1264 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import os -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.utils import secret_key