Skip to content

Commit 991fb64

Browse files
committed
Clarify that static_folder must be a relative path
Also hint at `root_path` parameter rather than mentioning in plain text.
1 parent 29d3320 commit 991fb64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/flask/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ class Flask(_PackageBoundObject):
170170
static files on the web. Defaults to the name
171171
of the `static_folder` folder.
172172
:param static_folder: the folder with static files that should be served
173-
at `static_url_path`. Defaults to the ``'static'``
174-
folder in the root path of the application.
173+
at `static_url_path`. Must be a relative path under
174+
`root_path` of the application. Defaults to
175+
``'static'``.
175176
:param static_host: the host to use when adding the static route.
176177
Defaults to None. Required when using ``host_matching=True``
177178
with a ``static_folder`` configured.

0 commit comments

Comments
 (0)