Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Django model based search for Django CMS

Project description

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.

Project details


Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page