Django model based search for Django CMS
Project description
Django model based search for Django CMS
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file djangocms-site-search-0.2.3.tar.gz
.
File metadata
- Download URL: djangocms-site-search-0.2.3.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0b2ca1e8d446845c533bfdba3fc67aa685ecc4b7970f43d591f04a77de64c6 |
|
MD5 | 4a1442990bff2d761a95694004801cf5 |
|
BLAKE2b-256 | 0f46ec213e1b3291252558391854f6a9a00b3e187b1efb138b2dc301b3f8db1b |