Quando provo ad installare l'unaccent
Postgres estensione (attraverso il pacchetto postgresql-contrib
), tutto funziona come per il seguito:Come posso attivare l'estensione unaccent su un modello già esistente
# psql -U postgres -W -h localhost
Password for user postgres:
psql (9.3.9)
SSL connection (cipher: DHE-RSA-AES256-GCM-SHA384, bits: 256)
Type "help" for help.
postgres=# CREATE EXTENSION unaccent;
CREATE EXTENSION
postgres=# SELECT unaccent('Hélène');
unaccent
----------
Helene
(1 row)
Tuttavia, quando provo da utilizzare con Django 1.8, ottengo il seguente errore:
ProgrammingError: function unaccent(character varying) does not exist
LINE 1: ...able" WHERE ("my_table"."live" = true AND UNACCENT("...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
Utilizzo di Postgresql 9.3 e Django 1.8.