Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save johndavidsimmons/6961e10b5ea229b086dbd726dd09fc58 to your computer and use it in GitHub Desktop.

Select an option

Save johndavidsimmons/6961e10b5ea229b086dbd726dd09fc58 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'] = secret_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment