Skip to content
Myr

Docs: Mention SERVER_NAME in the url_for() docstring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Priit Laes · committed by Priit Laes · parent 50dc240 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:flask/helpers.py+3 added-1 removed
303 unmodified lines
304 :exc:`~werkzeug.routing.BuildError`.305306 :param endpoint: the endpoint of the URL (name of the function)307 :param values: the variable arguments of the URL rule308 :param _external: if set to `True`, an absolute URL is generated.308 :param _external: if set to `True`, an absolute URL is generated. Server309 address can be changed via `SERVER_NAME` configuration variable which310 defaults to `localhost`.311 :param _anchor: if provided this is added as anchor to the URL.312 :param _method: if provided this explicitly specifies an HTTP method.313 """314 appctx = _app_ctx_stack.top
581 unmodified lines