Created
March 8, 2017 16:45
-
-
Save mingrammer/d728029e38e9cacb293243dded08a6ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from myapp import app | |
secret_key = os.environ.get('SECRET_KEY', None) | |
if not secret_key: | |
raise ValueError('You must have "SECRET_KEY" variable') | |
app.config['SECRET_KEY'] = secert_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is a typo ->
secert_key
should besecret_key
:)