Skip to content
Myr

Correct the mistakes.

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

authored by lord63 · committed by lord63 · parent 02e7bec · Browse files · 1 file+3 added−3 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−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/config.rst+3 added-3 removed
5 unmodified lines
6.. versionadded:: 0.378Applications need some kind of configuration. There are different settings9you might want to change depending on the application environment like10toggling the debug mode, setting the secret key, and other such as10toggling the debug mode, setting the secret key, and other such11environment-specific things.1213The way Flask designed usually requires the configuration to be13The way Flask is designed usually requires the configuration to be14available when the application starts up. You can hardcode the15configuration in the code, which for many small applications is not16actually that bad, but there are better ways.17
230 unmodified lines
248249This first loads the configuration from the250`yourapplication.default_settings` module and then overrides the values251with the contents of the file the :envvar:`YOURAPPLICATION_SETTINGS`252environment variable pointing to. This environment variable can be set on252environment variable points to. This environment variable can be set on253Linux or OS X with the export command in the shell before starting the254server::255256 $ export YOURAPPLICATION_SETTINGS=/path/to/settings.cfg
194 unmodified lines