Configure Horizon in Folsom with django_compressor

Asked by Emilien Macchi

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 ?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#1

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 I don't have a resolution for that yet, but if you have suggestions feel free to add them there.

Hopefully that helps.

Can you help with this problem?

Provide an answer of your own, or ask Emilien Macchi for more information if necessary.

To post a message you must log in.