Skip to main content

Django model based search for Django CMS

PyPI_Version Build_Status Coverage_Status

The reason I created this was simply to avoid the overhead of using third party applications such as haystack. I was deploying an app on Amazons Elastic Beanstalk that will run on one or more instance and did not want the hassle of trying to save the index results in a centralized storage. I also did not want another instance just to act as a search endpoint like solr etc.

Doing it this way by saving the results in the database makes it extremely portable.

On publishing a page, an index item is added to the model. On unpublishing or deleting its removed.

Installation

Installation with pip:

$ pip install djangocms-site-search

Setup

Add the following apps to the INSTALLED_APPS ensuring its below cms:

INSTALLED_APPS = (
    ...
    'cms',
    'site_search',
)

Add the url routes to the project in urls.py:

urlpatterns = [
    url(r'^', include('site_search.urls', 'search')),
]

Documentation

Please head over to our documentation for all the details on how to install and use the django CMS site search.

License

The project is licensed under the MIT license.

Release history Release notifications | RSS feed

0.2.3

1 file

This release

0.2.2 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page