Beginning of inculcation of separate full-text search database.
Introduced a __searchable__ field in Post model class.
This indicates which attributes of Post will be searchable.
Minor change in whooshalchemy import.
Minor addition to import statements.
Modified the database.
Our older DB data was not indexed by Whooshalchemy. Had to delete everything in it.
Starting anew.
Played around with post searching.
Committed changes to app.db from our previous commit.
Added MAX_SEARCH_RESULTS config var.
Added SearchForm class to app/forms.py.
Added a SearchForm instance to Flask's global g.
This is done in the before_request handler. We need to be able to access the search form in the universal navigation bar.
Of course, this means that it must be available to all templates, and that means it must be in g.
Modified the base template.
The navigation bar now features a search form. This bit is also only shown when the user is authenticated.
Added a view function for the search form.
It checks if the form validation is successful, and returns search form data.
Search database.
Added a view function for the search results page.
Now to add the actual template.
Added a search results template.
It simply reuses the post template for each post in the search results.
Minor import statement issue.
Merge pull request #8 from VaticanCameos/ch10

Adding chapter 10