Merge "Refer local_settings in doc to customize settings"
This commit is contained in:
commit
a2d991274d
|
@ -34,6 +34,10 @@ Next you will need to setup your Django application config by copying ``openstac
|
||||||
|
|
||||||
> cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
|
> cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To add new settings or customize existing settings, modify the ``local_settings.py`` file.
|
||||||
|
|
||||||
Horizon assumes a single end-point for OpenStack services which defaults to
|
Horizon assumes a single end-point for OpenStack services which defaults to
|
||||||
the local host (127.0.0.1). If this is not the case change the
|
the local host (127.0.0.1). If this is not the case change the
|
||||||
``OPENSTACK_HOST`` setting in the ``openstack_dashboard/local/local_settings.py`` file, to the actual IP address of the OpenStack end-point Horizon should use.
|
``OPENSTACK_HOST`` setting in the ``openstack_dashboard/local/local_settings.py`` file, to the actual IP address of the OpenStack end-point Horizon should use.
|
||||||
|
|
|
@ -192,7 +192,7 @@ Allowed Hosts
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
For production deployments of Horizon you must add the ``ALLOWED_HOSTS``
|
For production deployments of Horizon you must add the ``ALLOWED_HOSTS``
|
||||||
setting to your ``settings.py`` or ``local_settings.py`` file. This setting
|
setting to your ``local_settings.py`` file. This setting
|
||||||
was added in Django 1.5 and is an important security feature. For more
|
was added in Django 1.5 and is an important security feature. For more
|
||||||
information on it please consult the ``local_settings.py.example`` file
|
information on it please consult the ``local_settings.py.example`` file
|
||||||
or Django's documentation.
|
or Django's documentation.
|
||||||
|
|
|
@ -49,9 +49,9 @@ This allows for common site-customization requirements such as:
|
||||||
* Re-ordering panels within a dashboard or panel group.
|
* Re-ordering panels within a dashboard or panel group.
|
||||||
|
|
||||||
To specify the python module containing your modifications, add the key
|
To specify the python module containing your modifications, add the key
|
||||||
``customization_module`` to your ``settings.HORIZON_CONFIG`` dictionary.
|
``customization_module`` to your ``HORIZON_CONFIG`` dictionary in
|
||||||
The value should be a string containing the path to your module in dotted
|
``local_settings.py``. The value should be a string containing the path to your
|
||||||
python path notation. Example::
|
module in dotted python path notation. Example::
|
||||||
|
|
||||||
HORIZON_CONFIG = {
|
HORIZON_CONFIG = {
|
||||||
"customization_module": "my_project.overrides"
|
"customization_module": "my_project.overrides"
|
||||||
|
|
Loading…
Reference in New Issue