Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
fdadd0c6
Commit
fdadd0c6
authored
May 02, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change SECRET_KEY logic
parent
aa9771b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
olapy/web/__init__.py
olapy/web/__init__.py
+1
-2
setup.py
setup.py
+3
-0
No files found.
olapy/web/__init__.py
View file @
fdadd0c6
...
...
@@ -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
\
xb9
a
\
x8b
\
x13
\
x10
\
x88
\
x08
Pu
\
xf9
\
xf2
\
xb0
9
\
xff
x
\
xfc
ftj
\
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
...
...
setup.py
View file @
fdadd0c6
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment