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@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
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to