Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danicat/77005fa30a702ff7d23dec2f0341e11c to your computer and use it in GitHub Desktop.
Save danicat/77005fa30a702ff7d23dec2f0341e11c 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