What are the full steps for deploying a Horizon customization module? [closed]

asked 2014-08-13 06:06:38 -0600

my_openstack_username gravatar image

updated 2014-08-21 05:28:45 -0600

http://docs.openstack.org/developer/horizon/topics/customizing.html#modifying-existing-dashboards-and-panels (The Horzion documentation) states that you can specify a custom python module which will be loaded after the entire Horizon site has been initialized. It says to write its dotted python path notation into HORIZON_CONFIG dictionary inside local_settings.py.

Let's say, I have the folder with customization module somewhere on disk of the machine with running Horizon. What steps do I need to take to deploy this module before finally adding the dotted python path notation?

Edit

After reading a bit more into Customizing Horizon, I've found a recommendation to add a python-path argument to the WSGIDaemonProcess line in Apache’s Horizon config. I've done sone, but after restarting the httpd, I get the 'module not loaded error'. What am I missing?

Edit

After moving the module to Horizon root directory the 'module not loaded' error has dissappeared, so I can assume that Horizon is at least able to load modules from its Python path. However, the module still doesn't appear to be executed. For example, I've made a simple script that creates a file. It works when executed from Python directly, but there is still no effect if I run the server.

Edit

I've solved the problem. In the example for adding a customization model to HORIZON_CONFIG I mistook 'overrides' in 'my_project.overrides' for a method due to there being no explicit statement about what it is. After adding a file named 'overrides.py' the module started working. I'm closing the question.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by my_openstack_username
close date 2014-08-21 05:29:08.850091

Comments

search this site, there are a couple of similar questions with answers.

smaffulli gravatar imagesmaffulli ( 2014-08-15 17:00:36 -0600 )edit