geonode
geonode copied to clipboard
need to remove call to command rebuild_index in tasks.py
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
please, if haystack was removed in master, that try catch is not needed, and this causes an exception