clarify static_folder is relative to root_path

This commit is contained in:
Jeenu Viswambharan 2020-03-20 09:41:00 +00:00 committed by David Lord
parent c6a619af83
commit 4548e00dba
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
1 changed files with 3 additions and 3 deletions

View File

@ -170,9 +170,9 @@ class Flask(_PackageBoundObject):
:param static_url_path: can be used to specify a different path for the :param static_url_path: can be used to specify a different path for the
static files on the web. Defaults to the name static files on the web. Defaults to the name
of the `static_folder` folder. of the `static_folder` folder.
:param static_folder: the folder with static files that should be served :param static_folder: The folder with static files that is served at
at `static_url_path`. Defaults to the ``'static'`` ``static_url_path``. Relative to the application ``root_path``
folder in the root path of the application. or an absolute path. Defaults to ``'static'``.
:param static_host: the host to use when adding the static route. :param static_host: the host to use when adding the static route.
Defaults to None. Required when using ``host_matching=True`` Defaults to None. Required when using ``host_matching=True``
with a ``static_folder`` configured. with a ``static_folder`` configured.