Skip to content

Commit f991a89

Browse files
authored
Merge pull request #3541 from jeenuv/clarify-static
Clarify that static_folder must be a relative path
2 parents c6a619a + 4548e00 commit f991a89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flask/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ class Flask(_PackageBoundObject):
170170
:param static_url_path: can be used to specify a different path for the
171171
static files on the web. Defaults to the name
172172
of the `static_folder` folder.
173-
:param static_folder: the folder with static files that should be served
174-
at `static_url_path`. Defaults to the ``'static'``
175-
folder in the root path of the application.
173+
:param static_folder: The folder with static files that is served at
174+
``static_url_path``. Relative to the application ``root_path``
175+
or an absolute path. Defaults to ``'static'``.
176176
:param static_host: the host to use when adding the static route.
177177
Defaults to None. Required when using ``host_matching=True``
178178
with a ``static_folder`` configured.

0 commit comments

Comments
 (0)