From 9b7f3d9561ce47f370642a3d169fce6469203148 Mon Sep 17 00:00:00 2001 From: Zhao Chao Date: Thu, 26 Jul 2018 13:36:20 +0800 Subject: [PATCH] Fix README syntax to meet PyPI requirements The sample configuration about caching should be correctly formated in literal blocks. Otherwise the following checking command(which will be executed during the openstack releases validating jobs) will fail: python setup.py check --restructuredtext --strict Change-Id: Ic5af30f4d1890cce18bd2212b68f38426274f435 Signed-off-by: Zhao Chao --- README.rst | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index f094ccf..eda7b71 100644 --- a/README.rst +++ b/README.rst @@ -63,24 +63,24 @@ The use of a cross-process cache such as Memcached is required. Install Memcached itself and a Memcached binding such as python-memcached. -For a single horizon instance use the CACHES setting like the example below. +For a single horizon instance use the CACHES setting like the example below.:: -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', + }, + } For multiple horizon instances behind a load balancer configure each instance -to use the same cache like the example below. +to use the same cache like the example below.:: -CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', - 'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211''] - }, -} + CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211''] + }, + } NOTE: