Skip to content

Commit

Permalink
Flask port: use canned secret key in dev and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 25, 2021
1 parent c1c4c23 commit f51c91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"""
from oauth_dropins.webutil import appengine_info, util

SECRET_KEY = util.read('flask_secret_key')
JSONIFY_PRETTYPRINT_REGULAR = True

if appengine_info.DEBUG:
ENV = 'development'
CACHE_TYPE = 'NullCache'
SECRET_KEY = 'sooper seekret'
else:
ENV = 'production'
CACHE_TYPE = 'SimpleCache'
SECRET_KEY = util.read('flask_secret_key')

0 comments on commit f51c91d

Please sign in to comment.