[Python] Unknown command: 'update_search_field' with pgfulltext

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    Following the instructions on https://github.com/linuxlewis/djorm-ext-pgfulltext I added a search_index to one of my existing PostgreSQL models, as follows:

    search_index = VectorField()

    objects = SearchManager(
    fields = ('materials','origin','style'),
    config = 'pg_catalog.english',
    search_field = 'search_index',
    auto_update_search_field = True
    )


    Using my virtual-env and having pgfulltext installed, with this version djorm-ext-pgfulltext==0.9.3 according to pip freeze, I cd to the directory where manage.pyis located. And tried to run:

    ./manage.py update_search_field app_name


    Which resulted in the following error:


    Unknown command: 'update_search_field' Type 'manage.py help' for usage.
    ​

    Am I missing something on how this command is used? Should I add the index directly to my db instance with psql? And if so, how could I achieve this? Any help will be much appreciated.

    Continue reading...

Compartilhe esta Página