[Bug 1379761] Re: Asset compression does not happen unless debug mode is enabled

James Page james.page at ubuntu.com
Mon Oct 13 09:35:56 UTC 2014


I tried compressing the assets manually:

ubuntu at juju-jpos-machine-16:/usr/share/openstack-dashboard$ sudo ./manage.py compress --force
Found 'compress' tags in:
        /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_conf.html
        /usr/share/openstack-dashboard-ubuntu-theme/templates/_stylesheets.html
        /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
        /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_scripts.html
Compressing... CommandError: An error occured during rendering /usr/share/openstack-dashboard-ubuntu-theme/templates/_stylesheets.html: Error evaluating expression:
    $font-size-small

>From /usr/share/openstack-dashboard/static/dashboard/scss/_context_selection.scss:20
...imported from <string u'// bootstrap overrides:\n$icon-font-path: "../../bo'...>:141
Traceback:
  File "/usr/lib/python2.7/dist-packages/scss/expression.py", line 130, in evaluate_expression
    return ast.evaluate(self, divide=divide)
  File "/usr/lib/python2.7/dist-packages/scss/expression.py", line 359, in evaluate
    raise SyntaxError("Undefined variable: '%s'." % self.name)
SyntaxError: Undefined variable: '$font-size-small'.

tweaking DEBUG = True and re-running fixes this - so looks like
something todo with lookup paths.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1379761

Title:
  Asset compression does not happen unless debug mode is enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1379761/+subscriptions



More information about the Ubuntu-server-bugs mailing list