add default wrapper to horizon CACHES

As reported by Dave, the syntax for specifying CACHES
in the sessions documentation was incorrect and needed
to be wrapped by a 'default' clause.

Change-Id: Ia32181abe3c05eb0c31eafd7037dbc552fe1e5d8
Closes-Bug:1315088
This commit is contained in:
Tom Fifield 2014-05-02 02:02:20 +08:00
parent b931549e9d
commit 0b9aad391d
1 changed files with 4 additions and 0 deletions

View File

@ -39,7 +39,9 @@
development work. Enabled by:</para>
<programlisting language="python"><?db-font-size 75%?>SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default' : {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
}
}</programlisting>
</section>
<section xml:id="dashboard-session-key-value-store">
@ -65,8 +67,10 @@ CACHES = {
<para>Enabled by:</para>
<programlisting language="python"><?db-font-size 75%?>SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'LOCATION': 'my_memcached_host:11211',
}
}</programlisting>
</section>
<section xml:id="dashboard-session-redis">