Ask Your Question
0

where is the "settings.py" file for horizon located?

asked 2016-11-26 22:20:56 -0500

masber gravatar image

Hi,

I am trying to integrate setup sahara GUI with Horizon following this linkhttp://docs.openstack.org/developer/sahara/icehouse/horizon/installation.guide.html. The document says "Configure OpenStack Dashboard. In settings.py add sahara to"

these are the locations I can see:

[root@openstack-dev ~(keystone_admin)]# find / -name settings.py
/usr/lib/python2.7/site-packages/horizon/test/settings.py
/usr/lib/python2.7/site-packages/django/conf/project_template/project_name/settings.py
/usr/lib64/python2.7/site-packages/pymongo/settings.py
/usr/share/openstack-dashboard/openstack_dashboard/settings.py
/usr/share/openstack-dashboard/openstack_dashboard/test/settings.py
/usr/share/openstack-dashboard/openstack_dashboard/utils/settings.py

which one is the right one?

thank you

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2016-11-27 13:27:00 -0500

Rupesh Chowdary gravatar image

For horizon It should be following, In controller node

vim /etc/openstack-dashboard/local_settings.py

edit flag offensive delete link more
0

answered 2016-11-27 00:15:08 -0500

craja gravatar image

You can use "usr/share/openstack-dashboard/openstack_dashboard/settings.py" to modify horizon settings. But, it always a good practice to use local_settings.py located under "/etc/openstack_dashboard/local_settings.py" for any horizon configuration.

Best, Raja

edit flag offensive delete link more
0

answered 2016-11-27 21:01:16 -0500

ryan_chen gravatar image

This’s Configure OpenStack Dashboard file: /etc/openstack-dashboard/local_settings.py

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: 2016-11-26 22:20:56 -0500

Seen: 329 times

Last updated: Nov 27 '16