Commit fdadd0c6 authored by mouadh's avatar mouadh

change SECRET_KEY logic

parent aa9771b9
......@@ -7,8 +7,7 @@ from flask_sqlalchemy import SQLAlchemy
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config[
'SECRET_KEY'] = '\xe6\xfc\xea\xb9a\x8b\x13\x10\x88\x08Pu\xf9\xf2\xb09\xffx\xfcftj\xf3\x04'
app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir,
'olapy.db')
app.config['DEBUG'] = True
......
......@@ -36,6 +36,9 @@ setup(
# "Topic :: Business intelligence",
],)
# generate and set secret key
os.environ["SECRET_KEY"] = os.urandom(24).encode('hex')
# initiate cubes examples
if RUNNING_TOX:
home_directory = os.environ.get('HOME_DIR')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment