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.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

django_haystack_channels-0.0.3-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.3.tar.gz.

File metadata

File hashes

Hashes for django-haystack-channels-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fc2970846cbb3e0832add1a25fbf2ada558805f79dffae7b9e6769999c0b43bf
MD5 fdb3c58e1c0ffcc2d3b663d1500e940c
BLAKE2b-256 4f42e20636819eece46c4edc93ca96886d6de7cdec9564e056a6907617ea9cd2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_haystack_channels-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f6d3113d1c5e82a26f201de6603342de6469e62f4934bfcd6a70e7f048bb4b27
MD5 8caeb7f706ebc964a4ec618610572348
BLAKE2b-256 521bb00349b16080ab1728bf3b98b75f1db431085d653e6477890d7334da8481

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