Address Django Deprecations for 4.1
django.utils.translation.ugettext_lazy() is deprecated in favor of the functions that they’re aliases for: django.utils.translationgettext_lazy() With that MemcachedCache backend was also deprecated in favor of PyMemcacheCache. MemcachedCache was removed in django 4.1 https: //docs.djangoproject.com/en/4.0/releases/3.0/#id3 Change-Id: I9b77b33fbc4a9560c72504f935bf7f9082fefdd7
This commit is contained in:
parent
d4ef66fc02
commit
a57aeff938
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user