Helper code to connect Haystack to Django Channels
Project description
Add asynchronous search index updates to your django app with this drop-in support for django, django-channels and haystack!
Install from pip or github
Add haystack_channels to INSTALLED_APPS
Update your projects channels routing:
from channels.routing import route, route_class, include from haystack_channels.routing import channel_routing as haystack_channel_routing channel_routing = [ # your routes include(haystack_channel_routing) ]
Update your HAYSTACK_SIGNAL_PROCESSOR:
HAYSTACK_SIGNAL_PROCESSOR = 'haystack_channels.signals.ChannelsAsyncSignalProcessor'
Or inherit from ChannelsAsyncSignalProcessor and ChannelsAsyncSignalConsumer to build a custom version optimised for your app.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-haystack-channels-0.0.1b.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8dbaae29e905d52dd3141c3954dcaf3fffbec8e6b4c167f4c9abd3cbaa3758 |
|
MD5 | 60133e8e8f94b8f04bbd8c2b7ea4007f |
|
BLAKE2b-256 | 372a2fa52757c5e6e180b96466aa03976b1511267ecad31f37ed2ed26e507094 |