Skip to main content

An extension to django CMS to provide multilingual Haystack indexes

Project description

fork notes:

This package has been modified to work with current django-haystack 2.0.0-beta in a pretty clean way.

Has been renamed to a more consistant name for cmsplugins and uploaded to pypi so more people can use haystack 2.0 by Martin Owens <doctormo@gmail.com>

This package provides multilingual search indexes for easy Haystack integration with django CMS.

Language Notes:

Instead of indexing each language as a seperate index, all pages/titles are indexed you can then either search for all pages with any language or use a filter with a custom SearchView class with an updated SearchQuerySet:

class SearchView(BaseView):
def __call__(self, request):

language = get_language_from_request(request) self.searchqueryset = SearchQuerySet().filter(language=language) return BaseView.__call__(self, request)

Usage

After installing django-cms-search through your package manager of choice, add cms_search to your INSTALLED_APPS

For setting up Haystack, please refer to their documentation.

For more docs, see the docs folder or the online documentation.

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

cmsplugin-search-0.7.1.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file cmsplugin-search-0.7.1.tar.gz.

File metadata

File hashes

Hashes for cmsplugin-search-0.7.1.tar.gz
Algorithm Hash digest
SHA256 058d562d3bf2c4aeaa876e50bb2932ced251e8962180fc63f44a2eb896b60dbc
MD5 346ea2ad5f1f6b4ef8f59761ce005f96
BLAKE2b-256 c847a651c50c7858a859c0b3253d21a6493fe9eea117b3f276dec386fb4a0550

See more details on using hashes here.

Supported by

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