forked from orbit-oss/flask
clean up secret key docs
consistent key across docs and examples consistent key across tests, set in conftest
This commit is contained in:
parent
cce6e7dccc
commit
465922e5f1
15 changed files with 41 additions and 79 deletions
|
|
@ -39,7 +39,7 @@ method::
|
|||
|
||||
app.config.update(
|
||||
DEBUG=True,
|
||||
SECRET_KEY='...'
|
||||
SECRET_KEY=b'_5#y2L"F4Q8z\n\xec]/'
|
||||
)
|
||||
|
||||
.. admonition:: Debug Mode with the ``flask`` Script
|
||||
|
|
@ -367,7 +367,7 @@ Here is an example of a configuration file::
|
|||
|
||||
# Example configuration
|
||||
DEBUG = False
|
||||
SECRET_KEY = '?\xbf,\xb4\x8d\xa3"<\x9c\xb0@\x0f5\xab,w\xee\x8d$0\x13\x8b83'
|
||||
SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/'
|
||||
|
||||
Make sure to load the configuration very early on, so that extensions have
|
||||
the ability to access the configuration when starting up. There are other
|
||||
|
|
@ -385,7 +385,7 @@ from the environment.
|
|||
Environment variables can be set on Linux or OS X with the export command in
|
||||
the shell before starting the server::
|
||||
|
||||
$ export SECRET_KEY='?\xbf,\xb4\x8d\xa3"<\x9c\xb0@\x0f5\xab,w\xee\x8d$0\x13\x8b83'
|
||||
$ export SECRET_KEY='5f352379324c22463451387a0aec5d2f'
|
||||
$ export DEBUG=False
|
||||
$ python run-app.py
|
||||
* Running on http://127.0.0.1:5000/
|
||||
|
|
@ -393,7 +393,7 @@ the shell before starting the server::
|
|||
|
||||
On Windows systems use the `set` builtin instead::
|
||||
|
||||
>set SECRET_KEY='?\xbf,\xb4\x8d\xa3"<\x9c\xb0@\x0f5\xab,w\xee\x8d$0\x13\x8b83'
|
||||
>set SECRET_KEY='5f352379324c22463451387a0aec5d2f'
|
||||
>set DEBUG=False
|
||||
|
||||
While this approach is straightforward to use, it is important to remember that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue