Ask Your Question

Configure Horizon in Folsom with django_compressor

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

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 :

Do I need to do something more ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 27 times

Last updated: Jul 13 '12