mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Add note about being able to use django-redis' connection for constance.
Fixes #83.
This commit is contained in:
parent
ee0980a99f
commit
63f5370735
1 changed files with 6 additions and 0 deletions
|
|
@ -94,6 +94,12 @@ This is the default backend and has a couple of options:
|
|||
|
||||
CONSTANCE_REDIS_CONNECTION_CLASS = 'myproject.myapp.mockup.Connection'
|
||||
|
||||
If you are using `django-redis <http://niwibe.github.io/django-redis/>`_,
|
||||
feel free to use the ``CONSTANCE_REDIS_CONNECTION_CLASS`` setting to define
|
||||
a callable that returns a redis connection, e.g.::
|
||||
|
||||
CONSTANCE_REDIS_CONNECTION_CLASS = 'redis_cache.get_redis_connection'
|
||||
|
||||
* ``CONSTANCE_REDIS_PREFIX``
|
||||
|
||||
The (optional) prefix to be used for the key when storing in the Redis
|
||||
|
|
|
|||
Loading…
Reference in a new issue