5 Commits

Author SHA1 Message Date
Hirotaka Wakabayashi
0db9bad00c Calls manager.py by "$PYTHON" instead of "env python"
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
2020-03-31 07:17:34 +00:00
Akihiro Motoki
994d5b2e7a Ensure to compile translation catalogs
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
2016-02-24 00:37:48 +09:00
Akihiro Motoki
28e52b3892 devstack: compile translation message catalogs
Change-Id: Ia51d5bfd0f2c518107d330f90e8f5a2aa01dec42
2016-02-21 23:22:07 +09:00
Akihiro Motoki
54fe2bc3d2 Update devstack plugin
* 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
2016-01-28 13:26:06 +09:00
David Lyle
bac61fbfd2 Completing the plugin
Change-Id: I410aaac24b76e63a82d6c50364e46d54ead03b05
2015-12-18 15:53:31 -07:00