Browse Source

Merge pull request #1054 from lord63/master

fix a small mistake in setup.rst
pull/1056/head
Kenneth Reitz 11 years ago
parent
commit
807067001f
  1. 4
      docs/tutorial/setup.rst

4
docs/tutorial/setup.rst

@ -4,7 +4,7 @@ Step 2: Application Setup Code
============================== ==============================
Now that we have the schema in place we can create the application module. Now that we have the schema in place we can create the application module.
Let's call it flaskr.py. We will place this file inside the flask folder. Let's call it flaskr.py. We will place this file inside the flaskr folder.
We will begin by adding the imports we need and by adding the config We will begin by adding the imports we need and by adding the config
section. For small applications, it is possible to drop the configuration section. For small applications, it is possible to drop the configuration
directly into the module, and this is what we will be doing here. However directly into the module, and this is what we will be doing here. However
@ -66,7 +66,7 @@ if no such environment key is set.
In addition to that you can use the :meth:`~flask.Config.from_object` In addition to that you can use the :meth:`~flask.Config.from_object`
method on the config object and provide it with an import name of a method on the config object and provide it with an import name of a
module. Flask will the initialize the variable from that module. Note module. Flask will then initialize the variable from that module. Note
that in all cases only variable names that are uppercase are considered. that in all cases only variable names that are uppercase are considered.
The ``SECRET_KEY`` is needed to keep the client-side sessions secure. The ``SECRET_KEY`` is needed to keep the client-side sessions secure.

Loading…
Cancel
Save