I
I
Isaac Clark2012-06-27 12:20:25
Django
Isaac Clark, 2012-06-27 12:20:25

How to install haystack for Django?

Hello.
Please tell me, I've been suffering for the second day already ...
I'm trying to install haystack for Django.
That's what he did.
1. I downloaded haystack. (unpacked the archive)
2. I took the haystack folder from the archive and added it with all its contents to the project root folder.
3. In the setting.py file, added to INSTALLED_APPS = ( 'haystack', )
After that, the server does not start ...
Please tell me what I'm doing wrong, and how to install this application correctly, please ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
larikov, 2012-06-27
@Dark_Knight

Have you tried following the instructions?

  1. Install the package:
    1. Latest stable (1.2.6) off PyPI:pip install django-haystack
    2. Latest dev (2.0.0-beta) off GitHub:pip install -e git+https://github.com/toastdriven/[email protected]#egg=django-haystack

  2. Add haystackto your INSTALLED_APPS.
  3. Create search_indexes.pyfiles for your models.
  4. Setup the main SearchIndexvia autodiscover.
  5. Include haystack.urlsto your URLconf.
  6. Search!

A
Alexander, 2012-07-07
@syschel

what is woosh?

haystack is essentially a wrapper, an interface for managing search engines (programs). Woosh is one of the search engines Stogsen works with. Therefore, by installing only a wrapper, there will be no final result. After all, you have not installed any of the engines themselves. =)
In principle, you can do without a haystack, but it is easier and more convenient with it.
Z.Y. from off site , from main page:
Haystack is BSD licensed, plays nicely with third-party apps without needing to modify the source and supports Solr, Elasticsearch, Whoosh and Xapian .

These are 4 search engines, the wrapper of which is haystack.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question