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

Eric Peterson eric.peterson1 at twcable.com
Tue Oct 14 16:21:46 UTC 2014


it works for me, following these steps:

Change local settings, have the following at the top of the file:
DEBUG = False
TEMPLATE_DEBUG = DEBUG
COMPRESS_OFFLINE = True

Then I run these commands:
tools/with_venv.sh python manage.py collectstatic --noinput
tools/with_venv.sh python manage.py compress --force


The compress step produces this to the console:

Invalid template /home/eric/work/public/horizon/horizon/templates/horizon/common/_formset_table_row.html: Invalid block tag: 'blocktrans', expected 'empty' or 'endfor'
Found 'compress' tags in:
        /home/eric/work/public/horizon/openstack_dashboard/templates/_stylesheets.html
        /home/eric/work/public/horizon/horizon/templates/horizon/_conf.html
        /home/eric/work/public/horizon/horizon/templates/horizon/_scripts.html
Compressing... done
Compressed 4 block(s) from 3 template(s).
eric at eric-VirtualBox:~/work/public/horizon$

While there is an error / warning, it does complete ok  and is useable.

-- 
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