Submitter: Zuul
Branch:    master

commit dc0bce63a03e37e9f3f181930ba6d6b7c8b1346e
Author: Radomir Dopieralski <>
Date:   Wed Feb 7 19:32:42 2018 +0100

    Fix collectstatic in case of theme customization
    When doing theme customization with templates
    collectstatic failes with a traceback
    Change-Id: I0fdb80ddde1f73b657d445c75b55636d6f2e8d88
    Closes-bug: #1744239

** Changed in: horizon
       Status: In Progress => Fix Released

You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).

  collectstatic broken in case of template customization

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Originally posted on Ask Openstack:

  The problem affects Ocata and Pike for sure.

  In my case I have the following dir structure at:

  |-- _styles.scss
  |-- _variables.scss
  |-- horizon
  |   `-- components
  |       `-- _selects.scss
  |-- img
  |   |-- logo-switch.png
  |   `-- logo-switchengines.png
  `-- templates
      `-- auth
          |-- _footer_switch.html
          |-- _login_page.html
          `-- _splash.html

  This was working fine in Newton. Now I am testing Pike and I get:

  /usr/share/openstack-dashboard/ collectstatic --noinput

  Failes with the following Traceback
  Traceback (most recent call last):
    File "/usr/share/openstack-dashboard/", line 25, in <module>
    File "/usr/lib/python2.7/dist-packages/django/core/management/", 
line 354, in execute_from_command_line
    File "/usr/lib/python2.7/dist-packages/django/core/management/", 
line 303, in execute
    File "/usr/lib/python2.7/dist-packages/django/conf/", line 48, 
in __getattr__
    File "/usr/lib/python2.7/dist-packages/django/conf/", line 44, 
in _setup
      self._wrapped = Settings(settings_module)
    File "/usr/lib/python2.7/dist-packages/django/conf/", line 92, 
in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/usr/lib/python2.7/importlib/", line 37, in import_module
    File "/usr/share/openstack-dashboard/openstack_dashboard/", line 
442, in <module>
"/usr/share/openstack-dashboard/openstack_dashboard/utils/", line 
332, in find_static_files
      (templates_part, override_path) = theme_file.split('/templates/')
  ValueError: need more than 1 value to unpack

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to