devstack should call manager.py by using $PYTHON variable that devstack
uses through openstack installation because manage.py uses python2
unless caller explicitly uses python3 interpreter.
Currently devstack fails with the following error message when devstack
uses python3::
++ /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:14 : ../manage.py compilemessages
Traceback (most recent call last):
File "../manage.py", line 18, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
+ /opt/stack/trove-dashboard/devstack/plugin.sh:configure_trove_dashboard:1 : exit_trap
The reason for this error is no django.core.management library exists
in python2 site-packages because devstack installs the library as a
python3 library.
Story: 2007463
Task: 39148
Signed-off-by: Hirotaka Wakabayashi <hiwkby@yahoo.com>
Change-Id: Ia5f87788e117e9bbd9823afb6a8f139eb3ae5870
A working directory in DevStack is not trove-dashboard directory,
so the directory path must be specified by an absolute path.
When I tested the devstack plugin for translation previously,
it seems compiled message catalogs existed and I didn't notice it.
Change-Id: Id5bab4aa627f06e023839290a1d3f46c09890bf8
* Use setup_develop to install python module as most projects do.
This also makes translation management easier in development.
* Deploy 'enabled' files into horizon local/enabled directory.
* collectstatic and compress are no longer required during horizon
plugin installation. The timing of horizon installation was fixed
in https://review.openstack.org/#/c/257744/
Change-Id: I122d94af4c5e30ffa9e6c198460647073aace722