Documenting STATIC settings from Django
STATIC_URL and STATIC_ROOT are configurable. This patch adds documentation indicating that fact. Closes-Bug: #1476847 Change-Id: I33fd14de786a21d5a0eb2bd453b61a0715562634
This commit is contained in:
parent
ede7402604
commit
aa6b5da9a0
|
@ -1057,6 +1057,40 @@ provided see: ``"/horizon/openstack_dashboard/static/themes/webroot"``
|
||||||
path. For example, you'd replace ``/`` with ``/dashboard`` for the
|
path. For example, you'd replace ``/`` with ``/dashboard`` for the
|
||||||
alias.
|
alias.
|
||||||
|
|
||||||
|
``STATIC_ROOT``
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. versionadded:: 8.0.0(Liberty)
|
||||||
|
|
||||||
|
Default: ``<path_to_horizon>/static``
|
||||||
|
|
||||||
|
The absolute path to the directory where static files are collected when
|
||||||
|
collectstatic is run.
|
||||||
|
|
||||||
|
For more information see:
|
||||||
|
https://docs.djangoproject.com/en/1.7/ref/settings/#static-root
|
||||||
|
|
||||||
|
``STATIC_URL``
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. versionadded:: 8.0.0(Liberty)
|
||||||
|
|
||||||
|
Default: ``/static/``
|
||||||
|
|
||||||
|
URL that refers to files in STATIC_ROOT.
|
||||||
|
|
||||||
|
By default this value is ``WEBROOT/static/``.
|
||||||
|
|
||||||
|
This value can be changed from the default. When changed, the alias in your
|
||||||
|
webserver configuration should be updated to match.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The value for STATIC_URL must end in '/'.
|
||||||
|
|
||||||
|
For more information see:
|
||||||
|
https://docs.djangoproject.com/en/1.7/ref/settings/#static-url
|
||||||
|
|
||||||
|
|
||||||
``DISALLOW_IFRAME_EMBED``
|
``DISALLOW_IFRAME_EMBED``
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
Loading…
Reference in New Issue