Hi,
I installed django_watson
created 2 Appareil.objects through admin, one with title "blabla", one with title "toto"
get no results on a basic search at url mysite/search/?q=blabla
Search results for “blabla”
There are no results to display.
Try entering a less specific search term.
Here is what I have done (Python 3.4, django 1.11, Postgresql 9.3)
pip install django-watson
python manage.py migrate
python manage.py installwatson
apps.py
from django.apps import AppConfig
from watson import search as watson
class dclic.dclicappConfig(AppConfig):
name = 'dclic.dclicapp'
def ready(self):
Appareil = self.get_model("Appareil")
watson.register(Appareil)
Hi, I installed django_watson created 2 Appareil.objects through admin, one with title "blabla", one with title "toto"
get no results on a basic search at url mysite/search/?q=blabla
Here is what I have done (Python 3.4, django 1.11, Postgresql 9.3)
pip install django-watson
python manage.py migrate
python manage.py installwatson
apps.py from django.apps import AppConfig from watson import search as watson class dclic.dclicappConfig(AppConfig): name = 'dclic.dclicapp' def ready(self): Appareil = self.get_model("Appareil") watson.register(Appareil)
settings.py INSTALLED_APPS = [ ...... 'watson', ] WATSON_BACKEND = "watson.backends.PostgresSearchBackend"
python manage.py buildwatson
urls.py url(r"^search/", include("watson.urls", namespace="watson"))
models.py class Appareil(models.Model) : title = models.CharField(max_length=100)
created 2 Appareil.objects through admin, one with title "blabla", one with title "toto"
Any Idea ? Thanks