| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: haystack-redis |
| 3 |
Version: 0.0.1 |
| 4 |
Summary: Use redis as a persistence layer for Whoosh and Haystack |
| 5 |
Home-page: https://github.com/steinbro/haystack-redis |
| 6 |
Author: Jökull Sólberg Auðunsson |
| 7 |
Author-email: [email protected] |
| 8 |
Maintainer: Daniel W. Steinbrook |
| 9 |
Maintainer-email: [email protected] |
| 10 |
License: BSD |
| 11 |
Description: |
| 12 |
haystack-redis |
| 13 |
~~~~~~~~~~~~~~~~~~~~~~ |
| 14 |
|
| 15 |
A Whoosh storage engine using redis for persistence. A Haystack |
| 16 |
``SearchBackend`` subclass is also provided. Normally the ``STORAGE`` key could |
| 17 |
just be set but Haystack 2.0.0alpha is only aware of ``file`` and ``ram`` |
| 18 |
backends. |
| 19 |
|
| 20 |
This is especially useful for small sites hosted on Heroku, which does not allow |
| 21 |
writing to local disk. The ``REDISTOGO_URL`` environment variable is read, |
| 22 |
falling back to the localhost default port. |
| 23 |
|
| 24 |
Usage |
| 25 |
----- |
| 26 |
|
| 27 |
Configure your Haystack connections in ``settings.py``:: |
| 28 |
|
| 29 |
import tempfile |
| 30 |
HAYSTACK_CONNECTIONS = { |
| 31 |
'default': { |
| 32 |
'ENGINE': 'haystack_redis.RedisEngine', |
| 33 |
'PATH': tempfile.gettempdir(), |
| 34 |
}, |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
Platform: any |
| 39 |
Classifier: Environment :: Web Environment |
| 40 |
Classifier: Intended Audience :: Developers |
| 41 |
Classifier: License :: OSI Approved :: BSD License |
| 42 |
Classifier: Operating System :: OS Independent |
| 43 |
Classifier: Programming Language :: Python |
| 44 |
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content |
| 45 |
Classifier: Topic :: Software Development :: Libraries :: Python Modules |