Hi i have installed openstack-dashboard and i noticed that exists two files of configuration local_settings.py in /etc/openstack_dashboard and settings.py in /usr/share/openstack_dashboard so can you tell me the difference between them . Thank you in advance.
您好我已经安装了openstack-dashboard,我注意到在/ etc / openstack_dashboard中存在两个配置local_settings.py文件,在/ usr / share / openstack_dashboard中存在settings.py,所以你能告诉我它们之间的区别。先谢谢你。
1 个解决方案
#1
1
The file in /usr/share/openstack_dashboard/...
contains the default application settings.
/ usr / share / openstack_dashboard / ...中的文件包含默认的应用程序设置。
The file /etc/openstack_dashboard/local_settings.py
contains overrides that are particular to your environment.
文件/etc/openstack_dashboard/local_settings.py包含特定于您的环境的覆盖。
You would edit the latter to make configuration changes in your environment, but not the former. The file in /usr/share/openstack_dashboard/...
will be replaced on package updates/new version installs, but the file in /etc/openstack_dashboard
should be preserved on upgrades.
您可以编辑后者以在您的环境中进行配置更改,但不能更改前者。 / usr / share / openstack_dashboard / ...中的文件将在包更新/新版本安装时被替换,但/ etc / openstack_dashboard中的文件应在升级时保留。
#1
1
The file in /usr/share/openstack_dashboard/...
contains the default application settings.
/ usr / share / openstack_dashboard / ...中的文件包含默认的应用程序设置。
The file /etc/openstack_dashboard/local_settings.py
contains overrides that are particular to your environment.
文件/etc/openstack_dashboard/local_settings.py包含特定于您的环境的覆盖。
You would edit the latter to make configuration changes in your environment, but not the former. The file in /usr/share/openstack_dashboard/...
will be replaced on package updates/new version installs, but the file in /etc/openstack_dashboard
should be preserved on upgrades.
您可以编辑后者以在您的环境中进行配置更改,但不能更改前者。 / usr / share / openstack_dashboard / ...中的文件将在包更新/新版本安装时被替换,但/ etc / openstack_dashboard中的文件应在升级时保留。