openstack_dashboard中local_settings.py和settings.py有什么区别?

时间:2016-05-26 19:17:26

标签: openstack horizon

您好我已经安装了openstack-dashboard,我注意到在/ etc / openstack_dashboard中存在两个配置local_settings.py的文件,在/ usr / share / openstack_dashboard中存在settings.py,所以你能告诉我它们之间的区别。 提前谢谢。

1 个答案:

答案 0 :(得分:1)

/usr/share/openstack_dashboard/...中的文件包含默认的应用程序设置。

文件/etc/openstack_dashboard/local_settings.py包含特定于您的环境的覆盖。

您可以编辑后者以在您的环境中进行配置更改,但不会更改前者。 /usr/share/openstack_dashboard/...中的文件将在软件包更新/新版本安装时被替换,但/etc/openstack_dashboard中的文件应在升级时保留。