Commit 7bf9cd66 authored by mouadh's avatar mouadh

random SECRET_KEY

parent 383f319c
......@@ -7,7 +7,9 @@ from flask_sqlalchemy import SQLAlchemy
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
# app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
app.config['SECRET_KEY'] = os.urandom(24)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir,
'olapy.db')
app.config['DEBUG'] = True
......
......@@ -36,8 +36,8 @@ setup(
# "Topic :: Business intelligence",
],)
# generate and set secret key
os.environ["SECRET_KEY"] = os.urandom(24).encode('hex')
# # generate and set secret key
# os.environ["SECRET_KEY"]
# initiate cubes examples
if RUNNING_TOX:
......
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