Use old-style .format() for the time being

This commit is contained in:
Nikita P. Shupeyko 2018-03-06 14:00:01 +03:00
parent cee145fdea
commit 157dc560d4

View File

@ -19,7 +19,7 @@ DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default=60)
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': f"{env('REDIS_URL', default='redis://127.0.0.1:6379')}/0",
'LOCATION': "{}/0".format(env('REDIS_URL', default='redis://127.0.0.1:6379')),
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
# Mimicing memcache behavior.