Skip to main content

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!

  1. Install from pip or github

  2. Add haystack_channels to INSTALLED_APPS

  3. 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)
    ]
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-haystack-channels-0.0.1b.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file django-haystack-channels-0.0.1b.tar.gz.

File metadata

File hashes

Hashes for django-haystack-channels-0.0.1b.tar.gz
Algorithm Hash digest
SHA256 4d8dbaae29e905d52dd3141c3954dcaf3fffbec8e6b4c167f4c9abd3cbaa3758
MD5 60133e8e8f94b8f04bbd8c2b7ea4007f
BLAKE2b-256 372a2fa52757c5e6e180b96466aa03976b1511267ecad31f37ed2ed26e507094

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page