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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_haystack_channels-0.0.2b0-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_haystack_channels-0.0.2b0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_haystack_channels-0.0.2b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d747972ce9a2592c00d9fd2ccb3014bc419dc82fded582c7ac9f649c00f8ff7
MD5 194fe780f116e57626646e54749cfc6b
BLAKE2b-256 cbc1c3c78c5f8d56fb93b4b0482bb2ab384cd30e2a4f07886ae8bb61826aff49

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