Merge pull request #2399 from davidism/docs-secret-key

clean up secret key docs
This commit is contained in:
David Lord 2017-06-28 08:00:08 -07:00 committed by GitHub
commit d13e41ddef
15 changed files with 41 additions and 79 deletions

View file

@ -221,11 +221,11 @@ class Flask(_PackageBoundObject):
testing = ConfigAttribute('TESTING')
#: If a secret key is set, cryptographic components can use this to
#: sign cookies and other things. Set this to a complex random value
#: sign cookies and other things. Set this to a complex random value
#: when you want to use the secure cookie for instance.
#:
#: This attribute can also be configured from the config with the
#: ``SECRET_KEY`` configuration key. Defaults to ``None``.
#: :data:`SECRET_KEY` configuration key. Defaults to ``None``.
secret_key = ConfigAttribute('SECRET_KEY')
#: The secure cookie uses this for the name of the session cookie.