Ask Your Question
0

Configure Horizon in Folsom with django_compressor

asked 2012-07-13 20:35:22 -0600

emilienm gravatar image

I'm working on Folsom Testing Packages Evalutation in Ubuntu 12.10 and I've got some troubles with Horizon.

I actually perfomed only : apt-get install openstack-dashboard

Since I've seen an issue in apache2/error.log about compressor Django module, I perfomed : pip install django_compressor And that's all.

Here my Apache2 errors : http://paste.openstack.org/show/19386/

Do I need to do something more ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-07-13 20:51:25 -0600

gabriel-hurley gravatar image

From what you've got in the logs there, it looks like the packaging probably places the static media in a slightly different location than where Horizon typically expects it. I'm not sure quite what the right path is, but it should be resolvable by tweaking the packaged settings file.

The other problem you may encounter if you've just installed django_compressor is that once it is able to find the LESS files, it will also want node.js installed. Since ubuntu packages node that's relatively painless. The lessc script that is executed using node.js is bundled with horizon. That will probably work out of the box (unless you're moving things around), in which case it is again just a settings tweak to make it execute the right lessc command.

I would also point out the existence of this ticket: https://bugs.launchpad.net/horizon/+bug/1020799 (https://bugs.launchpad.net/horizon/+b...) I don't have a resolution for that yet, but if you have suggestions feel free to add them there.

Hopefully that helps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-07-13 20:35:22 -0600

Seen: 14 times

Last updated: Jul 13 '12