python - manage.py throwing error "PostgreSQL with tsearch2 support is needed to use the pgsql FTS backend" -


first off, requisite "i'm quite new python" comment must made.

some of environment details: - windows 7 - python 2.7 - django 1.3.4 - postgresql 9.2

i following error thrown when attempting run "manage.py syncdb".

  file "c:\python27\lib\site-packages\fts\backends\pgsql.py", line 46, in __init__     raise invalidftsbackenderror("postgresql tsearch2 support needed use pgsql fts backend") fts.backends.base.invalidftsbackenderror: postgresql tsearch2 support needed use pgsql fts backend 

i'm confused why error being thrown because have django-tsearch2 package installed (found here: https://github.com/hcarvalhoalves/django-tsearch2)

any insight why i'm getting error?

thanks time!

it looks you're trying use older django version newer postgresql.

full text search converted contrib module built-in feature in more recent postgresql versions. used tsearch2 extension, appears django looking for.

for backward compatibility older versions postgresql still includes extension provides old operators , syntax of tsearch2. can enable in database running, postgresql superuser, command:

create extension tsearch2; 

this should allow older django version "see" full text search support.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -