forked from orbit-oss/flask
Documented config changes
This commit is contained in:
parent
0207e90155
commit
ab110d8fe5
1 changed files with 10 additions and 1 deletions
|
|
@ -95,7 +95,10 @@ The following configuration values are used internally by Flask:
|
||||||
``'myapp.dev:5000'``) Note that
|
``'myapp.dev:5000'``) Note that
|
||||||
localhost does not support subdomains so
|
localhost does not support subdomains so
|
||||||
setting this to “localhost” does not
|
setting this to “localhost” does not
|
||||||
help.
|
help. Setting a ``SERVER_NAME`` also
|
||||||
|
by default enables URL generation
|
||||||
|
without a request context but with an
|
||||||
|
application context.
|
||||||
``APPLICATION_ROOT`` If the application does not occupy
|
``APPLICATION_ROOT`` If the application does not occupy
|
||||||
a whole domain or subdomain this can
|
a whole domain or subdomain this can
|
||||||
be set to the path where the application
|
be set to the path where the application
|
||||||
|
|
@ -126,6 +129,9 @@ The following configuration values are used internally by Flask:
|
||||||
used to debug those situations. If this
|
used to debug those situations. If this
|
||||||
config is set to ``True`` you will get
|
config is set to ``True`` you will get
|
||||||
a regular traceback instead.
|
a regular traceback instead.
|
||||||
|
``PREFERRED_URL_SCHEME`` The URL scheme that should be used for
|
||||||
|
URL generation if no URL scheme is
|
||||||
|
available. This defaults to ``http``.
|
||||||
================================= =========================================
|
================================= =========================================
|
||||||
|
|
||||||
.. admonition:: More on ``SERVER_NAME``
|
.. admonition:: More on ``SERVER_NAME``
|
||||||
|
|
@ -165,6 +171,9 @@ The following configuration values are used internally by Flask:
|
||||||
``SESSION_COOKIE_PATH``, ``SESSION_COOKIE_HTTPONLY``,
|
``SESSION_COOKIE_PATH``, ``SESSION_COOKIE_HTTPONLY``,
|
||||||
``SESSION_COOKIE_SECURE``
|
``SESSION_COOKIE_SECURE``
|
||||||
|
|
||||||
|
.. versionadded:: 0.9
|
||||||
|
``PREFERRED_URL_SCHEME``
|
||||||
|
|
||||||
Configuring from Files
|
Configuring from Files
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue