Skip to content

Instantly share code, notes, and snippets.

@mingrammer
Created March 8, 2017 16:45
Show Gist options
  • Save mingrammer/d728029e38e9cacb293243dded08a6ca to your computer and use it in GitHub Desktop.
Save mingrammer/d728029e38e9cacb293243dded08a6ca to your computer and use it in GitHub Desktop.
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
@danicat
Copy link

danicat commented Feb 22, 2018

there is a typo -> secert_key should be secret_key :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment