Django Haystack : search for a term with and without accents

I'm implementing a search system onto my django project, using django haystack. The problem is that some fields in my models have some french accents, and I would like to find the entries which...

Good tool for automatic setup and deployment of Django projects

2021 update Today I'm using Ansible for this and other devops tasks. Along the way I've experimented with Chef, Puppet, Saltstack and Docker images, but I've found that for me, as a solo...

How to find "import name" of any package in Python?

I wonder if is there any reliable and consistant way to get a Python package's "import name" / namespace. For example; Package; django-haystack Import name; haystack or Package; ipython Import...

Finding or configuring Solr home directory

I'm following this tutorial on setting up django-haystack and solr: http://django-haystack.readthedocs.org/en/latest/tutorial.html I hit a stumbling block here: If you’re using the Solr...

Python Django requirements.txt

I have a requirements.txt file containing all my dependencies but it is not processed correctly : After a pip install -r requirements.txt, I get the following pip freeze...

GeoDjango GEOSException error

Trying to install a GeoDjango on my machine. I'm really new to Python and being brought into a project that has been a very tricky install for the other team members. I installed Python 2.7 and...

Remove object from haystack index

I delete a record using django: r = model.objects.get(id=1) r.delete() Now I want to remove the record from the index WITHOUT re-indexing. How? I cannot get remove_object to work and the...

elasticsearch exceptions ConnectionError

I am making a Django app. It uses Haystack with elasticsearch as backend. When I run ./manage.py rebuild_index I get this error: aborted.', error(61, 'Connection refused'))) caused by:...

ImportError: No module named crispy-forms

I'm working on some django apps, pretty noob still. Would like to use crispy-forms, but eclipse and django doesnt recognize it. Trying to runserver or shell: $ python manage.py runserver this...

"No installed app with label 'admin'" running Django migration. The app is installed correctly

I am trying to use admin.LogEntry objects during a datamigration on Django 1.7 The 'django.contrib.admin' app is listed on INSTALLED_APPS. On the shell, it works: >>> from django.apps import...

haystack search is not returning results properly, error: list' object has no attribute 'filter'

I am a noob in django and haystack, This is my form that extends haystack SearchForm from haystack.forms import SearchForm from ksaprice_app.models import ProductDiff, Vendor from django import...

django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'auth.User' that has not been installed

After migrating my django and userena packages like below Django 1.8 to Django 1.9.7 django-userena 1.4.1 to django-userena==2.0.1 After running the project , I am getting below this...

Django Haystack Custom Search Form

I've got a basic django-haystack SearchForm working OK, but now I'm trying to create a custom search form that includes a couple of extra fields to filter on. I've followed the Haystack...

Using ElasticSearch as Database/Storage with Django

I am trying to use ElasticSearch as a NoSQL database in my Django project. The goal is to plug Kibana on the other side and be able to visualize my data there. I do not have a choice of adding...

Trying to install django-haystack

Hello I'm trying to install django-haystack on a Debian 7 x86 but it is impossible to install, this Debian is fresh installation, I compiled python 3.6, I am little disappointed, this the error I...

Solr with Django-Haystack: 'Cannot create tester'

I am trying to create a search engine with django haystack with solr. So far I followed the documentation below and installed solr-6.6.0 on my...

Sphinx with Django - Model doesn't declare an explicit app label

I have spent countless hours but this is still stuck. The documentation is so lacking. Using Django 1.10, trying to create Sphinx documentation which has been giving various errors. Finally I am...

Django search fields in multiple models

I want to search multiple fields in many models. I don't want to use other apps like 'Haystack', only pure Django. For example: # models.py class Person(models.Model): first_name =...

Need advice about a proper way how to make a price range filter (price slider)

Oscar has a such structure of facet configuration: OSCAR_SEARCH_FACETS = { 'fields': { 'rating': { 'name': _('Rating'), 'field': 'rating', ...

Django-haystack can not filter by datetime

Version: django-haystack (2.6.1) Django (1.11.4) I am trying to creating a search form, following by the tourial: After filtering the start date, the sqs become empty. What's...

django haysteck FacetedSearchView returning empty results?

I'm using Django haystack FacetedSearchView my views.py: from haystack.generic_views import FacetedSearchView as BaseFacetedSearchView class FacetedSearchView(BaseFacetedSearchView): ...

How can I use django-haystack search facets with custom attributes?

I have a Django-oscar shop and I successfully installed Solr 4.7.2 as search engine. It works great with the predefined attributes, e.g. upc, title, product_class... But filtering for additional...

How to update_index for haystack from a external script?

I am using Django Haystack with ElasticSearch backend for my search page. I am using MongoDB as my Database. Everything was working fine in my search page. PROBLEM My web-application uses an...

Django Haystack - No module named 'haystack.backends.elasticsearch5_backend'

Im following the install instructions as per the haystack documentation http://docs.haystacksearch.org/en/master/tutorial.html#installation and the search engine installation...

Elasticsearch 5.x Fails to Start

I have been trying to install Elasticsearch, which, for version 7.x seemed easy, whereas for version 5.x is a pain in the neck. The whole ordeal exists because there is a slew of compatibility...

Django-Haystack and Solr 8.5.1

Does Django haystack work with the latest Solr update (8.5.1)? Plus how do I setup with my Django blog project

django.core.exceptions.ImproperlyConfigured: WSGI application 'DjBlog.wsgi.application' could not be loaded; Error importing module

I started a website building project with Django, but ran into a problem with the WSGI server and but I haven't change anything Please, anyone who knows the answer, let me know. This is the code...

Conflicting with version dependencies when running pip install

Having issues with version dependencies when running pip install on docker. However, when installing on my mac without docker and just virtualenv, works perfectly fine. These are the versions I...

DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm')

Hello when trying to deploy a django application to elastic beanstalk this error shows up, DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm') I have...

Building wheel for cffi (setup.py) ... error while installing the packages from requirements.txt in django

I am trying to install a new Django project from git, I created a new virtual envt using python3(version: 3.8.5). When I try to install the required libraries in the requirements.txt, I get the...