
This package provides the easiest way to add a search engine in your flask application on the shoulders of Pony ORM and Whoosh, two amazing pieces of software. We've included some templates to render the search engine and we hope you hack it. Just see the example below.
$ pip install flask-ponywhoosh$ git clone https://github.com/jonaprieto/flask-ponywhoosh.git
$ cd flask-ponywhooshIf you are using python 2:
$ make install-py2If you are using python 3:
$ make install-py3Download the source of this package:
$ git clone https://github.com/jonaprieto/flask-ponywhoosh.git
$ cd flask-ponywhooshThen, you can run the example running these commands:
$ pip install -r requirements.txt
$ python example.py runserverYou will see in the shell some outputs showing settings of flask-ponywhoosh (debug mode is on by default). We provide two urls by default:
- <localhost>/ : the form of the search engine
- <localhost>/database : raw content of the test database
<localhost> is often http://127.0.0.1:5000.
Customize the templates, URL routes and other stuffs, please checkout the documentation on:
- http://pythonhosted.org/flask-ponywhoosh/
- https://pypi.python.org/pypi/flask-ponywhoosh
Adding what fields of your models in your database you want to search.
