Docker Hub の Docker イメージ (最新 = 0.9.1) を使用して、独自のサーバーに Wirecloud をインストールしています。https://wirecloud.readthedocs.io/en/latest/development/platform/themes/の手順を使用して、「基本テーマ」セクションに従ってみました。しかし、テーマをファイル システムのどこに配置する必要があるかは明確ではありません。
1. created the directory structure in the example
2. created a file __init__.py with one line: parent = "wirecloud.defaulttheme"
3. created a file _variables.scss and pasted the example into it. Put the file in babblerTheme/static/css/
4. created a header.png image and placed it in babblerTheme/static/images/logos/
5. Then updated settings.py with the name of our basic theme with the setting: THEME_ACTIVE = "babblerTheme"
6. Then ran python manage.py collectstatic --noinput
エラーが発生します:
...ファイル "/usr/local/lib/python2.7/site-packages/wirecloud/platform/themes.py"、82 行目、get_theme_metadata で ValueError("%s は有効な WireCloud テーマではありません" % theme_name ) ValueError: babblerTheme は有効な WireCloud テーマではありません
テーマディレクトリを次の場所に配置しようとしましたが、うまくいきませんでした:
/opt/wirecloud_instance/wirecloud_instance/babblerTheme
/opt/wirecloud_instance/babblerTheme
/usr/local/lib/python2.7/site-packages/wirecloud/babblerTheme
3 か所すべて、同じ情報量のないエラーです。
これは本当に簡単なはずですが、すでに半日以上費やしています。デフォルトのテーマの内容を変更することでこのバグを回避できますが、Wirecloud のアップグレード時に問題が発生することが予想されます。
Wirecloud にカスタム テーマを取得させるにはどうすればよいでしょうか?