Skip to content
Myr

Merge pull request #1054 from lord63/master

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

fix a small mistake in setup.rst

authored by Kenneth Reitz · committed by Kenneth Reitz · parents bd51d2b, 2b8a281 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/tutorial/setup.rst+2 added-2 removed
2 unmodified lines
3Step 2: Application Setup Code4==============================56Now that we have the schema in place we can create the application module.7Let's call it flaskr.py. We will place this file inside the flask folder.7Let's call it flaskr.py. We will place this file inside the flaskr folder.8We will begin by adding the imports we need and by adding the config9section. For small applications, it is possible to drop the configuration10directly into the module, and this is what we will be doing here. However11a cleaner solution would be to create a separate `.ini` or `.py` file and
53 unmodified lines
65if no such environment key is set.6667In addition to that you can use the :meth:`~flask.Config.from_object`68method on the config object and provide it with an import name of a69module. Flask will the initialize the variable from that module. Note69module. Flask will then initialize the variable from that module. Note70that in all cases only variable names that are uppercase are considered.7172The ``SECRET_KEY`` is needed to keep the client-side sessions secure.73Choose that key wisely and as hard to guess and complex as possible.
40 unmodified lines