Skip to content

Commit

Permalink
Updated documentation with little haystack info. See #24
Browse files Browse the repository at this point in the history
  • Loading branch information
wm3ndez committed Oct 6, 2014
1 parent 96a8fad commit fe3a5af
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deploy/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ pytz
factory_boy
django-widget-tweaks
django-haystack
elasticsearch
elasticsearch
sphinx
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# built documents.
#
# The short X.Y version.
version = '1.1.5'
version = '1.4'
# The full version, including alpha/beta/rc tags.
release = '1.1.5'
release = '1.4.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
29 changes: 29 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Add the need apps to INSTALLED_APPS::
'constance',
# see django-constance documentation
'constance.backends.database',
'widget_tweaks',
'haystack',

)

Expand All @@ -44,3 +46,30 @@ Assuming that you are storing Constance values in the Database::
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'


Though, the default and recommended backend is Redis. You can read more
here: https://github.com/comoga/django-constance#redis-default



Haystack
--------

We're using Haystack to handle the search. Here is an example using
Elasticsearch::

HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'realestate',
},
}

For more info you can look at Haystack documentation:
http://django-haystack.readthedocs.org/en/latest/tutorial.html#modify-your-settings-py


RESTful API
-----------

**djangorestframework**

0 comments on commit fe3a5af

Please sign in to comment.