Skip to content

Remove call to command rebuild_index in tasks.py #11920

Description

@cesarbenjamindotnet

Expected Behavior

....
migrations tasks done

Actual Behavior

when tasks.py is called, after the execution of manage.py in function migrations() there is a try block that use command rebuild_index, this returns the message 'Type "manage.py help' for usage.", i found that this is a haystack command, but haystack was removed after the add of django 4.2 support

Steps to Reproduce the Problem

when run the whole tasks.py, at the migrations() call, it thows that message.

Specifications

  • GeoNode version: @master

  • Installation type (vanilla, geonode-project): geonode-project

  • Installation method (manual, docker): docker

  • Platform: ubuntu 22.04

  • Additional details: at line 328 need to remove this:

    try:
    ctx.run(
    f"python manage.py rebuild_index --noinput --settings={_localsettings()}",
    pty=True,
    )
    except Exception:
    pass

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions