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 <zhaochao1984@gmail.com>
This commit is contained in:
parent
06d17bc5fb
commit
9b7f3d9561
28
README.rst
28
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user